Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,7 @@ def get_file_content_tool(task_id: str) -> str:
|
|
| 13 |
Args:
|
| 14 |
task_id: The ID of the task requiring a file.
|
| 15 |
"""
|
| 16 |
-
|
| 17 |
-
url = f"https://huggingface-agents-course-unit4-eval.hf.space/files/{task_id}"
|
| 18 |
response = requests.get(url)
|
| 19 |
if response.status_code == 200:
|
| 20 |
filename = f"temp_{task_id}"
|
|
@@ -39,8 +38,8 @@ def run_evaluation(username):
|
|
| 39 |
if not username:
|
| 40 |
return "Please log in with your Hugging Face account first."
|
| 41 |
|
| 42 |
-
#
|
| 43 |
-
api_base = "https://
|
| 44 |
|
| 45 |
# Fetch questions
|
| 46 |
try:
|
|
|
|
| 13 |
Args:
|
| 14 |
task_id: The ID of the task requiring a file.
|
| 15 |
"""
|
| 16 |
+
url = f"https://agents-course-unit4-eval.hf.space/files/{task_id}"
|
|
|
|
| 17 |
response = requests.get(url)
|
| 18 |
if response.status_code == 200:
|
| 19 |
filename = f"temp_{task_id}"
|
|
|
|
| 38 |
if not username:
|
| 39 |
return "Please log in with your Hugging Face account first."
|
| 40 |
|
| 41 |
+
# Correct evaluation API base URL
|
| 42 |
+
api_base = "https://agents-course-unit4-eval.hf.space"
|
| 43 |
|
| 44 |
# Fetch questions
|
| 45 |
try:
|