multimodalart HF staff commited on
Commit
f529e78
1 Parent(s): 21ac753

No queue for clear

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def _launch_demo(args, model, tokenizer, config):
116
 
117
  submit_btn.click(predict, [query, chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
118
  submit_btn.click(reset_user_input, [], [query])
119
- empty_btn.click(reset_state, [chatbot, task_history], outputs=[chatbot], show_progress=True)
120
  regen_btn.click(regenerate, [chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
121
  demo.queue(max_size=20)
122
  demo.launch()
 
116
 
117
  submit_btn.click(predict, [query, chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
118
  submit_btn.click(reset_user_input, [], [query])
119
+ empty_btn.click(reset_state, [chatbot, task_history], outputs=[chatbot], show_progress=True, queue=False) #No queue for clearing
120
  regen_btn.click(regenerate, [chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
121
  demo.queue(max_size=20)
122
  demo.launch()