Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def upload_imgorvideo(gr_video, text_input, chat_state, chatbot):
|
|
118 |
chatbot = chatbot + [((gr_video,), None)]
|
119 |
chat_state.system = "You are able to understand the visual content that the user provides. Follow the instructions carefully and explain your answers in detail."
|
120 |
img_list = []
|
121 |
-
llm_message = chat.upload_video_without_audio(gr_video, chat_state, img_list)
|
122 |
return gr.update(interactive=False), gr.update(interactive=True, placeholder='Type and press Enter'), gr.update(value="Start Chatting", interactive=False), chat_state, img_list,chatbot
|
123 |
# else:
|
124 |
# # img_list = []
|
@@ -133,6 +133,7 @@ def gradio_ask(user_message, chatbot, chat_state):
|
|
133 |
|
134 |
@spaces.GPU
|
135 |
def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
|
|
136 |
llm_message = chat.answer(conv=chat_state,
|
137 |
img_list=img_list,
|
138 |
num_beams=num_beams,
|
|
|
118 |
chatbot = chatbot + [((gr_video,), None)]
|
119 |
chat_state.system = "You are able to understand the visual content that the user provides. Follow the instructions carefully and explain your answers in detail."
|
120 |
img_list = []
|
121 |
+
#llm_message = chat.upload_video_without_audio(gr_video, chat_state, img_list)
|
122 |
return gr.update(interactive=False), gr.update(interactive=True, placeholder='Type and press Enter'), gr.update(value="Start Chatting", interactive=False), chat_state, img_list,chatbot
|
123 |
# else:
|
124 |
# # img_list = []
|
|
|
133 |
|
134 |
@spaces.GPU
|
135 |
def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
136 |
+
llm_message = chat.upload_video_without_audio(gr_video, chat_state, img_list)
|
137 |
llm_message = chat.answer(conv=chat_state,
|
138 |
img_list=img_list,
|
139 |
num_beams=num_beams,
|