AntonVoronko commited on
Commit
0b323d0
·
verified ·
1 Parent(s): 69fc2e5

splitting

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