yoda1976 commited on
Commit
357666e
·
1 Parent(s): 004a8b0

change the return statement in __call__

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,7 +37,8 @@ class BasicAgent:
37
 
38
  print(f"Agent returning fixed answer: {fixed_answer}")
39
  answer = fixed_answer["messages"][-1].content
40
- return answer[14:]
 
41
 
42
  def run_and_submit_all( profile: gr.OAuthProfile | None):
43
  """
 
37
 
38
  print(f"Agent returning fixed answer: {fixed_answer}")
39
  answer = fixed_answer["messages"][-1].content
40
+ return answer.split("FINAL ANSWER: ")[-1]
41
+
42
 
43
  def run_and_submit_all( profile: gr.OAuthProfile | None):
44
  """