GiantPandas commited on
Commit
9c9c32c
·
verified ·
1 Parent(s): c8ee5c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -283,7 +283,7 @@ def _launch_demo(args):
283
 
284
  def reset_state(task_history):
285
  task_history.clear()
286
- return []
287
 
288
  with gr.Blocks() as demo:
289
  gr.Markdown("""<center><font size=3> Qwen2.5-VL-32B-Instruct Demo </center>""")
@@ -302,7 +302,7 @@ def _launch_demo(args):
302
  predict, [chatbot, task_history], [chatbot], show_progress=True
303
  )
304
  submit_btn.click(reset_user_input, [], [query])
305
- empty_bin.click(reset_state, [task_history], [chatbot], show_progress=True)
306
  regen_btn.click(regenerate, [chatbot, task_history], [chatbot], show_progress=True)
307
  addfile_btn.upload(add_file, [chatbot, task_history, addfile_btn], [chatbot, task_history], show_progress=True)
308
 
 
283
 
284
  def reset_state(task_history):
285
  task_history.clear()
286
+ return [], []
287
 
288
  with gr.Blocks() as demo:
289
  gr.Markdown("""<center><font size=3> Qwen2.5-VL-32B-Instruct Demo </center>""")
 
302
  predict, [chatbot, task_history], [chatbot], show_progress=True
303
  )
304
  submit_btn.click(reset_user_input, [], [query])
305
+ empty_bin.click(reset_state, [task_history], [chatbot, task_history], show_progress=True)
306
  regen_btn.click(regenerate, [chatbot, task_history], [chatbot], show_progress=True)
307
  addfile_btn.upload(add_file, [chatbot, task_history, addfile_btn], [chatbot, task_history], show_progress=True)
308