Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -159,7 +159,7 @@ with demo:
|
|
159 |
|
160 |
with gr.TabItem('WebCam'):
|
161 |
with gr.Row():
|
162 |
-
|
163 |
img_output_from_webcam= gr.Image(shape=(750,750))
|
164 |
gr.Image(source="webcam",type='pil',shape=(750,750)).stream(detect_objects, inputs=[options,url_input,img_input,slider_input], outputs =[img_output_from_webcam])
|
165 |
|
|
|
159 |
|
160 |
with gr.TabItem('WebCam'):
|
161 |
with gr.Row():
|
162 |
+
web_input = gr.Image(source='webcam',type='pil',shape=(750,750),streaming=True)
|
163 |
img_output_from_webcam= gr.Image(shape=(750,750))
|
164 |
gr.Image(source="webcam",type='pil',shape=(750,750)).stream(detect_objects, inputs=[options,url_input,img_input,slider_input], outputs =[img_output_from_webcam])
|
165 |
|