Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -30,9 +30,7 @@ def run_agent(level, question, file_name):
|
|
| 30 |
|
| 31 |
answer = agent.run(question)
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
return final_answer, str(final_answer == ground_truth)
|
| 36 |
|
| 37 |
def get_final_answer(question, answer):
|
| 38 |
client = OpenAI()
|
|
|
|
| 30 |
|
| 31 |
answer = agent.run(question)
|
| 32 |
|
| 33 |
+
return get_final_answer(question, answer)
|
|
|
|
|
|
|
| 34 |
|
| 35 |
def get_final_answer(question, answer):
|
| 36 |
client = OpenAI()
|