Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|