Garvitj commited on
Commit
1d52ab6
·
verified ·
1 Parent(s): 18d4be8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -293,7 +293,7 @@ def respond(message, history: list[tuple[str, str]], system_message, max_tokens,
293
  def transcribe_and_predict_video(video, user_input, chat_history=[]):
294
  # Process the video for emotions (use your own emotion detection functions)
295
  image_emotion = process_video(video)
296
- text_emotion, audio_emotion = process_audio_from_video(video)
297
  em = [image_emotion, text_emotion, audio_emotion]
298
 
299
  # Format the conversation history
@@ -304,7 +304,7 @@ def transcribe_and_predict_video(video, user_input, chat_history=[]):
304
  You are a helpful AI assistant. Respond like a human while considering the user's emotion.
305
 
306
  User's Emotion: {em}
307
-
308
  Conversation History:
309
  {history_text}
310
 
 
293
  def transcribe_and_predict_video(video, user_input, chat_history=[]):
294
  # Process the video for emotions (use your own emotion detection functions)
295
  image_emotion = process_video(video)
296
+ text_emotion, audio_emotion,text = process_audio_from_video(video)
297
  em = [image_emotion, text_emotion, audio_emotion]
298
 
299
  # Format the conversation history
 
304
  You are a helpful AI assistant. Respond like a human while considering the user's emotion.
305
 
306
  User's Emotion: {em}
307
+ video text context: {text}
308
  Conversation History:
309
  {history_text}
310