Update app.py
Browse files
app.py
CHANGED
|
@@ -282,7 +282,13 @@ with demo:
|
|
| 282 |
|
| 283 |
with gr.TabItem('WebCam'):
|
| 284 |
with gr.Row():
|
| 285 |
-
web_input = gr.Image(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
img_output_from_webcam = gr.Image(height=750, width=750)
|
| 287 |
cam_but = gr.Button('Detect')
|
| 288 |
|
|
|
|
| 282 |
|
| 283 |
with gr.TabItem('WebCam'):
|
| 284 |
with gr.Row():
|
| 285 |
+
web_input = gr.Image(
|
| 286 |
+
sources=["webcam"],
|
| 287 |
+
type="pil",
|
| 288 |
+
height=750,
|
| 289 |
+
width=750,
|
| 290 |
+
streaming=True
|
| 291 |
+
)
|
| 292 |
img_output_from_webcam = gr.Image(height=750, width=750)
|
| 293 |
cam_but = gr.Button('Detect')
|
| 294 |
|