comidan commited on
Commit
6efa456
1 Parent(s): b3c8a21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -222,8 +222,8 @@ with gr.Blocks() as demo:
222
  gr.Markdown(cite_markdown)
223
  upload_button.click(upload_imgorvideo, inputs=[video, image, text_input], outputs=[chat_state,chatbot])
224
 
225
- text_input.submit(gradio_ask, [text_input, chatbot, chat_state], [text_input, chatbot, chat_state]).then(
226
- gradio_answer, [chatbot, chat_state, img_list, num_beams, temperature], [chatbot, chat_state, img_list]
227
  )
228
  clear.click(gradio_reset, [chat_state, img_list], [chatbot, video, image, text_input, upload_button, chat_state, img_list], queue=False)
229
 
 
222
  gr.Markdown(cite_markdown)
223
  upload_button.click(upload_imgorvideo, inputs=[video, image, text_input], outputs=[chat_state,chatbot])
224
 
225
+ text_input.submit(upload_imgorvideo, inputs=[video, image, text_input], outputs=[text_input,chatbot, chat_state]).then(
226
+ gradio_ask, [text_input, chatbot, chat_state], [text_input, chatbot, chat_state]).then(gradio_answer, [chatbot, chat_state, img_list, num_beams, temperature], [chatbot, chat_state, img_list]
227
  )
228
  clear.click(gradio_reset, [chat_state, img_list], [chatbot, video, image, text_input, upload_button, chat_state, img_list], queue=False)
229