final-assignment-hf-agent-course / get_gaia_questions.py
Francesco Laiti
GAIA questions saved locally for debug
22c7090
import requests
import json
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
questions_url = f"{DEFAULT_API_URL}/questions"
response = requests.get(questions_url)
print(response.json())
with open("questions.json", "w") as f:
json.dump(response.json(), f, indent=4)