Keyven commited on
Commit
3a929c0
Β·
1 Parent(s): 4ab1c7b

Update response function

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -160,8 +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], [chatbot, task_history], show_progress=True
164
- )
 
 
165
 
166
  submit_btn.click(clear_input, [], [query])
167
  clear_btn.click(clear_history, [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, model, tokenizer], [chatbot], show_progress=True
164
+ )
165
+
166
+
167
 
168
  submit_btn.click(clear_input, [], [query])
169
  clear_btn.click(clear_history, [task_history], [chatbot], show_progress=True)