YC-Chen commited on
Commit
4314d2e
1 Parent(s): 741e2a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.01)
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