Spaces:
Sleeping
Sleeping
Removing shape from gradio outputs as no longer used in API
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def video_stream(frame):
|
|
| 39 |
webcam_interface = gr.Interface(
|
| 40 |
fn=video_stream,
|
| 41 |
inputs=gr.Video(format="mp4", streaming=True),
|
| 42 |
-
outputs=gr.Image(
|
| 43 |
live=True,
|
| 44 |
description="Real-Time Object Detection with YOLO on Hugging Face"
|
| 45 |
)
|
|
@@ -48,3 +48,4 @@ webcam_interface = gr.Interface(
|
|
| 48 |
if __name__ == "__main__":
|
| 49 |
webcam_interface.launch()
|
| 50 |
|
|
|
|
|
|
| 39 |
webcam_interface = gr.Interface(
|
| 40 |
fn=video_stream,
|
| 41 |
inputs=gr.Video(format="mp4", streaming=True),
|
| 42 |
+
outputs=gr.Image(),
|
| 43 |
live=True,
|
| 44 |
description="Real-Time Object Detection with YOLO on Hugging Face"
|
| 45 |
)
|
|
|
|
| 48 |
if __name__ == "__main__":
|
| 49 |
webcam_interface.launch()
|
| 50 |
|
| 51 |
+
|