Spaces:
Paused
Paused
Update app.py
Browse files
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(
|
226 |
-
|
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 |
|