Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,8 @@ class BasicAgent:
|
|
| 25 |
text = final_answer["messages"][-1].content
|
| 26 |
if "FINAL ANSWER:" in text:
|
| 27 |
return text.partition("FINAL ANSWER:")[2].strip()
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 31 |
"""
|
|
|
|
| 25 |
text = final_answer["messages"][-1].content
|
| 26 |
if "FINAL ANSWER:" in text:
|
| 27 |
return text.partition("FINAL ANSWER:")[2].strip()
|
| 28 |
+
else:
|
| 29 |
+
return "The question could not be answered"
|
| 30 |
|
| 31 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 32 |
"""
|