Spaces:
Sleeping
Sleeping
minor fix
Browse files
agentcourse_unit4/api/agent_eval_api.py
CHANGED
|
@@ -18,7 +18,7 @@ class AgentEvalApi:
|
|
| 18 |
"""Get complete list of filtered questions with all associated data"""
|
| 19 |
response = requests.get(self.questions_url, timeout=15)
|
| 20 |
response.raise_for_status()
|
| 21 |
-
return response.json(object_hook=to_question_response)
|
| 22 |
|
| 23 |
def download_file(self, task_id: str) -> bytes:
|
| 24 |
"""Download the file associated with the given task_id"""
|
|
|
|
| 18 |
"""Get complete list of filtered questions with all associated data"""
|
| 19 |
response = requests.get(self.questions_url, timeout=15)
|
| 20 |
response.raise_for_status()
|
| 21 |
+
return response.json(object_hook=to_question_response)
|
| 22 |
|
| 23 |
def download_file(self, task_id: str) -> bytes:
|
| 24 |
"""Download the file associated with the given task_id"""
|