Spaces:
Sleeping
Sleeping
File size: 396 Bytes
55c26dd 71aee2a 55c26dd 71aee2a 55c26dd | 1 2 3 4 5 6 7 8 9 10 | from questions import get_all_questions
from gaia_interface import submit_to_leaderboard # Adjust path if needed
def run_and_submit_all(agent):
questions = get_all_questions()
answers = []
for q in questions:
answer = agent(q) # Pass entire dict, not q["question"]
answers.append({"question_id": q["id"], "answer": answer})
return submit_to_leaderboard(answers) |