Spaces:
Runtime error
Runtime error
Swap submit button order
#4
by
multimodalart
HF staff
- opened
app.py
CHANGED
@@ -101,8 +101,8 @@ def _launch_demo(args, model, tokenizer, config):
|
|
101 |
task_history = gr.State([])
|
102 |
|
103 |
with gr.Row():
|
104 |
-
empty_btn = gr.Button("🧹 Clear History")
|
105 |
submit_btn = gr.Button("🚀 Submit")
|
|
|
106 |
regen_btn = gr.Button("🤔️ Regenerate")
|
107 |
|
108 |
submit_btn.click(predict, [query, chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
|
|
|
101 |
task_history = gr.State([])
|
102 |
|
103 |
with gr.Row():
|
|
|
104 |
submit_btn = gr.Button("🚀 Submit")
|
105 |
+
empty_btn = gr.Button("🧹 Clear History")
|
106 |
regen_btn = gr.Button("🤔️ Regenerate")
|
107 |
|
108 |
submit_btn.click(predict, [query, chatbot, task_history], [chatbot], show_progress=True, queue=True) # Enable queue
|