lucaslingle commited on
Commit
c6849d2
·
verified ·
1 Parent(s): c3b690a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -186,7 +186,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
186
  while (answer is None) and (tries < 100):
187
  print(f"try {tries}")
188
  maybe_answer = agent(question_text, file_name)
189
- if isinstance(maybe_answer, str) and maybe_answer.startswith("Error in generating final LLM output: 504 Server Error: Gateway Time-out for"):
190
  tries += 1
191
  time.sleep(10)
192
  else:
 
186
  while (answer is None) and (tries < 100):
187
  print(f"try {tries}")
188
  maybe_answer = agent(question_text, file_name)
189
+ if isinstance(maybe_answer, str) and maybe_answer.startswith("Error in generating final LLM output"):
190
  tries += 1
191
  time.sleep(10)
192
  else: