AntonVoronko commited on
Commit
714c7d1
·
verified ·
1 Parent(s): 8c86843

fix answer

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # 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:
 
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: