Dzsysop commited on
Commit
e09906f
·
1 Parent(s): fc7e902

webcam - video, not a snapshot

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # time_limit=10, # 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
 
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