Keyven commited on
Commit
c8ba907
Β·
1 Parent(s): 9f0f596

Update response function

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -160,9 +160,10 @@ with gr.Blocks(css=css) as demo:
160
 
161
  gr.Markdown("### Key Features:\n- **Strong Performance**: Surpasses existing LVLMs on multiple English benchmarks including Zero-shot Captioning and VQA.\n- **Multi-lingual Support**: Supports English, Chinese, and multi-lingual conversation.\n- **High Resolution**: Utilizes 448*448 resolution for fine-grained recognition and understanding.")
162
  submit_btn.click(handle_text_input, [chatbot, task_history, query], [chatbot, task_history]).then(
163
- get_chat_response, [chatbot, task_history, model, tokenizer], [chatbot], show_progress=True
164
  )
165
 
 
166
  submit_btn.click(clear_input, [], [query])
167
  clear_btn.click(clear_history, [task_history], [chatbot], show_progress=True)
168
  regen_btn.click(handle_regeneration, [chatbot, task_history], [chatbot], show_progress=True)
 
160
 
161
  gr.Markdown("### Key Features:\n- **Strong Performance**: Surpasses existing LVLMs on multiple English benchmarks including Zero-shot Captioning and VQA.\n- **Multi-lingual Support**: Supports English, Chinese, and multi-lingual conversation.\n- **High Resolution**: Utilizes 448*448 resolution for fine-grained recognition and understanding.")
162
  submit_btn.click(handle_text_input, [chatbot, task_history, query], [chatbot, task_history]).then(
163
+ get_chat_response, [chatbot, task_history], [chatbot, task_history], show_progress=True
164
  )
165
 
166
+
167
  submit_btn.click(clear_input, [], [query])
168
  clear_btn.click(clear_history, [task_history], [chatbot], show_progress=True)
169
  regen_btn.click(handle_regeneration, [chatbot, task_history], [chatbot], show_progress=True)