Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -203,17 +203,3 @@ class BasicAgent:
|
|
203 |
print("Agent:", result)
|
204 |
print("Correct:", expected == result)
|
205 |
|
206 |
-
if __name__ == "__main__":
|
207 |
-
args = sys.argv[1:]
|
208 |
-
if not args or args[0] in {"-h", "--help"}:
|
209 |
-
print("Usage: python agent.py [question | dev]\n")
|
210 |
-
print(" - Provide a question to get a GAIA-style answer.")
|
211 |
-
print(" - Use 'dev' to evaluate 3 random GAIA questions from gaia_qa.csv.")
|
212 |
-
sys.exit(0)
|
213 |
-
|
214 |
-
q = " ".join(args)
|
215 |
-
agent = BasicAgent()
|
216 |
-
if q == "dev":
|
217 |
-
agent.evaluate_random_questions()
|
218 |
-
else:
|
219 |
-
print(agent(q))
|
|
|
203 |
print("Agent:", result)
|
204 |
print("Correct:", expected == result)
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|