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