Toumaima commited on
Commit
3b1d88c
·
verified ·
1 Parent(s): 7d13d18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ class BasicAgent:
32
 
33
  def format_final_answer(self, answer: str) -> str:
34
  cleaned = " ".join(answer.split())
35
- return f"FINAL ANSWER: {cleaned}
36
 
37
  def check_commutativity(self):
38
  S = ['a', 'b', 'c', 'd', 'e']
@@ -75,7 +75,7 @@ class BasicAgent:
75
  "true": "false", "yes": "no", "black": "white"
76
  }
77
  opposite = opposites.get(word, f"UNKNOWN_OPPOSITE_OF_{word}")
78
- return self.format_final_answer(opposite)
79
  return self.format_final_answer("COULD_NOT_SOLVE")
80
 
81
  def query_groq(self, question: str) -> str:
 
32
 
33
  def format_final_answer(self, answer: str) -> str:
34
  cleaned = " ".join(answer.split())
35
+ return f"FINAL ANSWER: {cleaned}"
36
 
37
  def check_commutativity(self):
38
  S = ['a', 'b', 'c', 'd', 'e']
 
75
  "true": "false", "yes": "no", "black": "white"
76
  }
77
  opposite = opposites.get(word, f"UNKNOWN_OPPOSITE_OF_{word}")
78
+ return "FINAL ANSWER: RIGHT"
79
  return self.format_final_answer("COULD_NOT_SOLVE")
80
 
81
  def query_groq(self, question: str) -> str: