Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
print("Initializing Smolagent...")
|
| 18 |
-
print("HF_TOKEN present:", bool(os.environ.get("
|
| 19 |
|
| 20 |
@tool
|
| 21 |
def fetch_task_file(task_id: str) -> str:
|
|
@@ -83,7 +83,7 @@ class BasicAgent:
|
|
| 83 |
#os.environ["HF_TOKEN"] = "hf_token",
|
| 84 |
#image_analysis_tool,
|
| 85 |
],
|
| 86 |
-
model=InferenceClientModel("Qwen/Qwen2.5-Coder-32B"),
|
| 87 |
max_steps=100,
|
| 88 |
)
|
| 89 |
#answering questions
|
|
|
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
print("Initializing Smolagent...")
|
| 18 |
+
print("HF_TOKEN present:", bool(os.environ.get("HF_TOKEN")))
|
| 19 |
|
| 20 |
@tool
|
| 21 |
def fetch_task_file(task_id: str) -> str:
|
|
|
|
| 83 |
#os.environ["HF_TOKEN"] = "hf_token",
|
| 84 |
#image_analysis_tool,
|
| 85 |
],
|
| 86 |
+
model=InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 87 |
max_steps=100,
|
| 88 |
)
|
| 89 |
#answering questions
|