Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,6 @@ def video_input(video):
|
|
39 |
yield processed_frame
|
40 |
|
41 |
# Set up the Gradio interface with the webcam
|
42 |
-
iface = gr.Interface(fn=video_input, inputs=gr.Video(
|
43 |
|
44 |
iface.launch()
|
|
|
39 |
yield processed_frame
|
40 |
|
41 |
# Set up the Gradio interface with the webcam
|
42 |
+
iface = gr.Interface(fn=video_input, inputs=gr.Video(type="webcam"), outputs="video", live=True)
|
43 |
|
44 |
iface.launch()
|