Spaces:
Sleeping
Sleeping
Removed source from gradient video input params as no longer needed in new version
Browse files
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(
|
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"
|