Gregor Betz commited on
Commit
8244607
1 Parent(s): 18d8ad3
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -164,7 +164,7 @@ async def bot(
164
  # health check
165
  gr.Info("Checking availability and health of inference endpoints ...", duration=6)
166
  health_check = await guide.health_check()
167
- await asyncio.sleep(1)
168
 
169
  if health_check.get("status", None) != "ok":
170
  health_msg = " | ".join([f"{k}: {v}" for k, v in health_check.items()])
@@ -188,6 +188,7 @@ async def bot(
188
  artifacts[otype.value] = ovalue
189
  else:
190
  break
 
191
  except asyncio.TimeoutError:
192
  msg = "Guided reasoning process took too long. Please try again."
193
  raise gr.Error(msg)
 
164
  # health check
165
  gr.Info("Checking availability and health of inference endpoints ...", duration=6)
166
  health_check = await guide.health_check()
167
+ await asyncio.sleep(0.1)
168
 
169
  if health_check.get("status", None) != "ok":
170
  health_msg = " | ".join([f"{k}: {v}" for k, v in health_check.items()])
 
188
  artifacts[otype.value] = ovalue
189
  else:
190
  break
191
+ await asyncio.sleep(0.1)
192
  except asyncio.TimeoutError:
193
  msg = "Guided reasoning process took too long. Please try again."
194
  raise gr.Error(msg)