kdevoe commited on
Commit
37e7681
·
verified ·
1 Parent(s): 05833e9

Removed source from gradient video input params as no longer needed in new version

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def video_stream(frame):
38
  # Create Gradio interface
39
  webcam_interface = gr.Interface(
40
  fn=video_stream,
41
- inputs=gr.Video(source="webcam", streaming=True),
42
  outputs=gr.Image(shape=(640, 480)),
43
  live=True,
44
  description="Real-Time Object Detection with YOLO on Hugging Face"
 
38
  # Create Gradio interface
39
  webcam_interface = gr.Interface(
40
  fn=video_stream,
41
+ inputs=gr.Video(format="mp4", streaming=True),
42
  outputs=gr.Image(shape=(640, 480)),
43
  live=True,
44
  description="Real-Time Object Detection with YOLO on Hugging Face"