Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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:
|