Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -328,8 +328,7 @@ with gr.Blocks(analytics_enabled=False) as demo:
|
|
| 328 |
with gr.Tab("Webcam"):
|
| 329 |
with gr.Row():
|
| 330 |
with gr.Column():
|
| 331 |
-
|
| 332 |
-
webcam_input = gr.Webcam(label="Webcam Input")
|
| 333 |
with gr.Row():
|
| 334 |
webcam_instruction = gr.Textbox(
|
| 335 |
label="Instruction",
|
|
@@ -355,11 +354,4 @@ with gr.Blocks(analytics_enabled=False) as demo:
|
|
| 355 |
outputs=[status_text]
|
| 356 |
)
|
| 357 |
|
| 358 |
-
|
| 359 |
-
demo.queue().launch(
|
| 360 |
-
show_api=False,
|
| 361 |
-
show_error=True,
|
| 362 |
-
enable_queue=True,
|
| 363 |
-
debug=True,
|
| 364 |
-
share=True # μΈλΆ μ κ·Ό νμ©
|
| 365 |
-
)
|
|
|
|
| 328 |
with gr.Tab("Webcam"):
|
| 329 |
with gr.Row():
|
| 330 |
with gr.Column():
|
| 331 |
+
webcam_input = gr.Image(label="Webcam Input", sources=["webcam"], streaming=True)
|
|
|
|
| 332 |
with gr.Row():
|
| 333 |
webcam_instruction = gr.Textbox(
|
| 334 |
label="Instruction",
|
|
|
|
| 354 |
outputs=[status_text]
|
| 355 |
)
|
| 356 |
|
| 357 |
+
demo.queue().launch(show_api=False, show_error=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|