Spaces:
Sleeping
Sleeping
change the return statement in __call__
Browse files
app.py
CHANGED
|
@@ -37,7 +37,8 @@ class BasicAgent:
|
|
| 37 |
|
| 38 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 39 |
answer = fixed_answer["messages"][-1].content
|
| 40 |
-
return answer[
|
|
|
|
| 41 |
|
| 42 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 43 |
"""
|
|
|
|
| 37 |
|
| 38 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 39 |
answer = fixed_answer["messages"][-1].content
|
| 40 |
+
return answer.split("FINAL ANSWER: ")[-1]
|
| 41 |
+
|
| 42 |
|
| 43 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 44 |
"""
|