TashiKP commited on
Commit
dea3547
·
verified ·
1 Parent(s): 4fea8df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def detect_video(video):
39
 
40
  # Gradio Interface
41
  interface = gr.Interface(fn=detect_video,
42
- inputs=gr.Video(source="upload", type="file"), # Updated syntax
43
  outputs="json",
44
  live=True,
45
  title="YOLOv5 Video Object Detection",
 
39
 
40
  # Gradio Interface
41
  interface = gr.Interface(fn=detect_video,
42
+ inputs=gr.Video(type="file"), # Corrected input without 'source'
43
  outputs="json",
44
  live=True,
45
  title="YOLOv5 Video Object Detection",