Spaces:
Running
Running
Update webcam_gradio_demo.py
Browse files- webcam_gradio_demo.py +2 -2
webcam_gradio_demo.py
CHANGED
@@ -92,12 +92,12 @@ with gr.Blocks() as demo:
|
|
92 |
def live_video():
|
93 |
while True:
|
94 |
if latest_img is None:
|
95 |
-
time.sleep(
|
96 |
else:
|
97 |
for text in answer_question(latest_img, latest_prompt):
|
98 |
if len(text) > 0:
|
99 |
yield text
|
100 |
-
time.sleep(
|
101 |
|
102 |
|
103 |
demo.queue().launch(debug=True, share=True)
|
|
|
92 |
def live_video():
|
93 |
while True:
|
94 |
if latest_img is None:
|
95 |
+
time.sleep(7)
|
96 |
else:
|
97 |
for text in answer_question(latest_img, latest_prompt):
|
98 |
if len(text) > 0:
|
99 |
yield text
|
100 |
+
time.sleep(3)
|
101 |
|
102 |
|
103 |
demo.queue().launch(debug=True, share=True)
|