artificialguybr multimodalart HF staff commited on
Commit
49728f3
1 Parent(s): 8741dc4

Swap submit button order (#4)

Browse files

- Swap submit button order (1d7b7def2cdac84897af36fb68941a7c7ff3ab84)


Co-authored-by: Apolinário from multimodal AI art <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
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