Spaces:
Sleeping
Sleeping
think split
Browse files
app.py
CHANGED
|
@@ -46,10 +46,12 @@ 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 |
-
if "FINAL ANSWER:" in result:
|
| 50 |
-
|
| 51 |
# if "Answer" in result:
|
| 52 |
# result = result.split("Answer")[1]
|
|
|
|
|
|
|
| 53 |
print(result)
|
| 54 |
return result
|
| 55 |
|
|
|
|
| 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 res:
|
| 54 |
+
res = res.split("</think>")[1]
|
| 55 |
print(result)
|
| 56 |
return result
|
| 57 |
|