Aumkeshchy2003 commited on
Commit
11dab6e
·
verified ·
1 Parent(s): ab07e28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -164,9 +164,10 @@ with gr.Blocks(css=css, title="Video & Image Object Detection by YOLOv5") as dem
164
  with gr.Tabs():
165
  with gr.TabItem("Video Detection", elem_classes="tab-item"):
166
  with gr.Row():
167
- video_input = gr.Video(
168
- label="Upload Video",
169
- interactive=True,
 
170
  elem_id="video-input"
171
  )
172
 
 
164
  with gr.Tabs():
165
  with gr.TabItem("Video Detection", elem_classes="tab-item"):
166
  with gr.Row():
167
+ # Fix: Changed from gr.Video to gr.File to ensure proper upload handling
168
+ video_input = gr.File(
169
+ label="Upload Video File",
170
+ file_types=["video"],
171
  elem_id="video-input"
172
  )
173