Pradheep1647 commited on
Commit
778504d
·
1 Parent(s): 03c677b

upload video option added1

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -145,10 +145,10 @@ with gr.Blocks() as iface:
145
  visual_emotion_output = gr.Textbox(label="Emotion from Video", interactive=False)
146
 
147
  # For uploaded video
148
- submit_button_file.click(analyze_video, inputs=[video_file, None], outputs=[transcript_output, audio_emotion_output, visual_emotion_output])
149
 
150
  # For YouTube streaming (no downloading)
151
- submit_button_url.click(analyze_video, inputs=[None, video_url], outputs=[transcript_output, audio_emotion_output, visual_emotion_output])
152
 
153
  if __name__ == "__main__":
154
  iface.launch()
 
145
  visual_emotion_output = gr.Textbox(label="Emotion from Video", interactive=False)
146
 
147
  # For uploaded video
148
+ submit_button_file.click(analyze_video, inputs=video_file, outputs=[transcript_output, audio_emotion_output, visual_emotion_output])
149
 
150
  # For YouTube streaming (no downloading)
151
+ submit_button_url.click(analyze_video, inputs=video_url, outputs=[transcript_output, audio_emotion_output, visual_emotion_output])
152
 
153
  if __name__ == "__main__":
154
  iface.launch()