jawakja commited on
Commit
fbf5d04
·
verified ·
1 Parent(s): 8a442fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -186,7 +186,7 @@ def multimodal_chat(message, history, image=None, video=None, pdf=None):
186
 
187
  # Combine frame descriptions and answer the user's question
188
  combined_context = "\n\n".join(frame_descriptions)
189
- final_prompt = f"I analyzed some video frames and here's what I found:\n\n{combined_context}\n\nBased on these video frames, {message if message else 'please describe what's happening in this video.'}"
190
  response = chat_with_qwen(final_prompt)
191
  return response
192
  else:
 
186
 
187
  # Combine frame descriptions and answer the user's question
188
  combined_context = "\n\n".join(frame_descriptions)
189
+ final_prompt = f"I analyzed some video frames and here's what I found:\n\n{combined_context}\n\nBased on these video frames, {message if message else 'please describe what\'s happening in this video.'}"
190
  response = chat_with_qwen(final_prompt)
191
  return response
192
  else: