Rahatara commited on
Commit
d11110b
1 Parent(s): afd4e22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -48,8 +48,12 @@ def format_descriptions(descriptions):
48
  return ' '.join(descriptions).strip()
49
 
50
  # Define Gradio interface
51
- video_input = gr.Video(label="Upload or Record Video", type="filepath")
52
- output_text = gr.Textbox(label="Video Analysis")
53
 
54
  # Create Gradio app
55
  gr.Interface(fn=generate_descriptions_for_frames, inputs=video_input, outputs=output_text, title="Video Content Detection System").launch()
 
 
 
 
 
48
  return ' '.join(descriptions).strip()
49
 
50
  # Define Gradio interface
51
+ video_input = gr.Video(label="Upload Video", autoplay=True)
52
+ output_text = gr.Textbox(label="What's in this video")
53
 
54
  # Create Gradio app
55
  gr.Interface(fn=generate_descriptions_for_frames, inputs=video_input, outputs=output_text, title="Video Content Detection System").launch()
56
+
57
+
58
+
59
+