YC-Chen commited on
Commit
741e2a4
1 Parent(s): 4c23ad0

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.05)
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.01)
191
  if time.time() - start_time > MAX_SEC:
192
  keep_streaming = False
193
  break