Spaces:
Running
Running
Update app.py
Browse files
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
|
52 |
-
output_text = gr.Textbox(label="
|
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 |
+
|