Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ with gr.Blocks() as demo:
|
|
187 |
s = requests.Session()
|
188 |
with s.post(API_URL, headers=HEADERS, json=data, stream=True, timeout=30) as r:
|
189 |
for line in r.iter_lines():
|
190 |
-
time.sleep(0.
|
191 |
if time.time() - start_time > MAX_SEC:
|
192 |
keep_streaming = False
|
193 |
break
|
|
|
187 |
s = requests.Session()
|
188 |
with s.post(API_URL, headers=HEADERS, json=data, stream=True, timeout=30) as r:
|
189 |
for line in r.iter_lines():
|
190 |
+
time.sleep(0.005)
|
191 |
if time.time() - start_time > MAX_SEC:
|
192 |
keep_streaming = False
|
193 |
break
|