webcam - video, not a snapshot
Browse files
app.py
CHANGED
|
@@ -70,8 +70,8 @@ with gr.Blocks(title="Real-Time Zorro Mask Sandbox") as demo:
|
|
| 70 |
fn=apply_zorro_mask,
|
| 71 |
inputs=input_webcam,
|
| 72 |
outputs=output_video,
|
| 73 |
-
|
| 74 |
-
|
| 75 |
)
|
| 76 |
|
| 77 |
# Launch the app
|
|
|
|
| 70 |
fn=apply_zorro_mask,
|
| 71 |
inputs=input_webcam,
|
| 72 |
outputs=output_video,
|
| 73 |
+
time_limit=3, # Optional: Stops the stream after 10 seconds if no new frames
|
| 74 |
+
stream_every=0.05 # Optional: Controls the delay between frames (in seconds). Lower is faster.
|
| 75 |
)
|
| 76 |
|
| 77 |
# Launch the app
|