AntonVoronko commited on
Commit
a2af67c
·
verified ·
1 Parent(s): fa981ab

think split

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- result = result.split("FINAL ANSWER: ")[1]
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