joylee529 commited on
Commit
2da4702
1 Parent(s): a3daf43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -312,12 +312,9 @@ def bot(history, motion_uploaded, data_stored, method):
312
  history[-1][1] = ""
313
  for character in response:
314
  history[-1][1] += character
315
- with eventlet.Timeout(0.021,False):
316
- time.sleep(0.02)
317
- yield history, motion_uploaded, data_stored
318
- continue
319
  yield history, motion_uploaded, data_stored
320
-
321
  def bot_example(history, responses):
322
  history = history + responses
323
  return history
 
312
  history[-1][1] = ""
313
  for character in response:
314
  history[-1][1] += character
315
+ time.sleep(0.02)
 
 
 
316
  yield history, motion_uploaded, data_stored
317
+
318
  def bot_example(history, responses):
319
  history = history + responses
320
  return history