Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def gradio_answer(video, chatbot, chat_state, img_list, num_beams, temperature):
|
|
143 |
chatbot[-1][1] = llm_message
|
144 |
print(chat_state.get_prompt())
|
145 |
print(chat_state)
|
146 |
-
return chatbot, chat_state
|
147 |
|
148 |
title = """
|
149 |
<div align="center">
|
@@ -235,7 +235,7 @@ with gr.Blocks() as demo:
|
|
235 |
|
236 |
start_time = time.time()
|
237 |
text_input.submit(gradio_ask, [text_input, chatbot, chat_state], [text_input, chatbot, chat_state]).then(
|
238 |
-
gradio_answer, [video, chatbot, chat_state, img_list, num_beams, temperature], [chatbot, chat_state]
|
239 |
)
|
240 |
end_time = time.time()
|
241 |
print('Time:', end_time - start_time)
|
|
|
143 |
chatbot[-1][1] = llm_message
|
144 |
print(chat_state.get_prompt())
|
145 |
print(chat_state)
|
146 |
+
return chatbot, chat_state, []
|
147 |
|
148 |
title = """
|
149 |
<div align="center">
|
|
|
235 |
|
236 |
start_time = time.time()
|
237 |
text_input.submit(gradio_ask, [text_input, chatbot, chat_state], [text_input, chatbot, chat_state]).then(
|
238 |
+
gradio_answer, [video, chatbot, chat_state, img_list, num_beams, temperature], [chatbot, chat_state, img_list]
|
239 |
)
|
240 |
end_time = time.time()
|
241 |
print('Time:', end_time - start_time)
|