Update app.py
Browse files
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
|
| 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:
|