Update app.py
Browse files
app.py
CHANGED
@@ -126,8 +126,8 @@ async def train_and_save_model():
|
|
126 |
await asyncio.sleep(60)
|
127 |
continue
|
128 |
|
129 |
-
train_x = np.array([row[0] for row in training])
|
130 |
-
train_y = np.array([row[1] for row in training])
|
131 |
|
132 |
print("Loading or creating model...")
|
133 |
if os.path.exists('chatbot_model.h5'):
|
|
|
126 |
await asyncio.sleep(60)
|
127 |
continue
|
128 |
|
129 |
+
train_x = np.array([row[0] for row in training], dtype=np.float32)
|
130 |
+
train_y = np.array([row[1] for row in training], dtype=np.float32)
|
131 |
|
132 |
print("Loading or creating model...")
|
133 |
if os.path.exists('chatbot_model.h5'):
|