Spaces:
Sleeping
Sleeping
splitting
Browse files
app.py
CHANGED
|
@@ -44,8 +44,10 @@ class BasicAgent:
|
|
| 44 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 45 |
fixed_answer = await self.agent.run(question)
|
| 46 |
result = fixed_answer.response.content
|
| 47 |
-
if "FINAL ANSWER:" in result:
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
print(result)
|
| 50 |
return result
|
| 51 |
|
|
|
|
| 44 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 45 |
fixed_answer = await self.agent.run(question)
|
| 46 |
result = fixed_answer.response.content
|
| 47 |
+
# if "FINAL ANSWER:" in result:
|
| 48 |
+
# result = result.split("FINAL ANSWER: ")[1]
|
| 49 |
+
if "Answer" in result:
|
| 50 |
+
result = result.split("Answer")[1]
|
| 51 |
print(result)
|
| 52 |
return result
|
| 53 |
|