ffreemt commited on
Commit
cdb2572
1 Parent(s): bd5dfd2
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -392,16 +392,17 @@ with gr.Blocks(
392
  fn=user,
393
  inputs=[msg, chatbot],
394
  outputs=[msg, chatbot],
395
- # queue=True,
396
  show_progress="full",
397
- ).then(bot, chatbot, chatbot)
398
  submit.click(
399
  fn=lambda x, y: ("",) + user(x, y)[1:], # clear msg
400
  inputs=[msg, chatbot],
401
  outputs=[msg, chatbot],
402
  # queue=True,
 
403
  show_progress="full",
404
- ).then(bot, chatbot, chatbot)
405
 
406
  clear.click(lambda: None, None, chatbot, queue=False)
407
 
 
392
  fn=user,
393
  inputs=[msg, chatbot],
394
  outputs=[msg, chatbot],
395
+ queue=False,
396
  show_progress="full",
397
+ ).then(bot, chatbot, chatbot, queue=True)
398
  submit.click(
399
  fn=lambda x, y: ("",) + user(x, y)[1:], # clear msg
400
  inputs=[msg, chatbot],
401
  outputs=[msg, chatbot],
402
  # queue=True,
403
+ queue=False,
404
  show_progress="full",
405
+ ).then(bot, chatbot, chatbot, queue=True)
406
 
407
  clear.click(lambda: None, None, chatbot, queue=False)
408