Yhhxhfh commited on
Commit
bd9d99c
1 Parent(s): 14fcfac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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'):