artificialguybr multimodalart HF staff commited on
Commit
b2d65d9
1 Parent(s): 943cd05

No queue for clear (#2)

Browse files

- No queue for clear (f529e7822ba66864f6d4ec5742f54625a32e77c0)


Co-authored-by: Apolinário from multimodal AI art <multimodalart@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ def _launch_demo(args, model, tokenizer, config):
107
 
108
  submit_btn.click(predict, [query, chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
109
  submit_btn.click(reset_user_input, [], [query])
110
- empty_btn.click(reset_state, [chatbot, task_history], outputs=[chatbot], show_progress=True)
111
  regen_btn.click(regenerate, [chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
112
  gr.Markdown("""### Performance Metrics:
113
  - **MMLU Accuracy**:
 
107
 
108
  submit_btn.click(predict, [query, chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
109
  submit_btn.click(reset_user_input, [], [query])
110
+ empty_btn.click(reset_state, [chatbot, task_history], outputs=[chatbot], show_progress=True, queue=False) #No queue for clearing
111
  regen_btn.click(regenerate, [chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
112
  gr.Markdown("""### Performance Metrics:
113
  - **MMLU Accuracy**: