Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def upload_imgorvideo(gr_video, gr_img, text_input,chatbot,audio_flag):
|
|
| 105 |
img_list = []
|
| 106 |
llm_message = chat.upload_video(gr_video, chat_state, img_list)
|
| 107 |
print(chat_state.messages)
|
| 108 |
-
return chat_state
|
| 109 |
elif gr_img is not None:
|
| 110 |
print(gr_img)
|
| 111 |
chatbot = [((gr_img,), None)]
|
|
@@ -220,7 +220,7 @@ with gr.Blocks() as demo:
|
|
| 220 |
|
| 221 |
|
| 222 |
gr.Markdown(cite_markdown)
|
| 223 |
-
upload_button.click(upload_imgorvideo, inputs=[video, image, text_input], outputs=[chat_state,])
|
| 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]
|
|
|
|
| 105 |
img_list = []
|
| 106 |
llm_message = chat.upload_video(gr_video, chat_state, img_list)
|
| 107 |
print(chat_state.messages)
|
| 108 |
+
return chat_state, chatbot
|
| 109 |
elif gr_img is not None:
|
| 110 |
print(gr_img)
|
| 111 |
chatbot = [((gr_img,), None)]
|
|
|
|
| 220 |
|
| 221 |
|
| 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]
|