TashiKP commited on
Commit
6ba0a10
·
verified ·
1 Parent(s): dea3547

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(type="file"), # Corrected input without 'source'
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(), # Removed 'type' argument
43
  outputs="json",
44
  live=True,
45
  title="YOLOv5 Video Object Detection",