Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,9 +14,9 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 14 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
-
self.
|
| 18 |
# CodeAgent allows the model to use a python interpreter to solve complex problems
|
| 19 |
-
self.agent = CodeAgent(tools=[], model=self.
|
| 20 |
print("Smolagents CodeAgent initialized.")
|
| 21 |
|
| 22 |
def __call__(self, question: str) -> str:
|
|
|
|
| 14 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
| 15 |
class BasicAgent:
|
| 16 |
def __init__(self):
|
| 17 |
+
self.model_id = "meta-llama/Llama-3.2-3B-Instruct"
|
| 18 |
# CodeAgent allows the model to use a python interpreter to solve complex problems
|
| 19 |
+
self.agent = CodeAgent(tools=[], model=self.model_id, add_base_tools=True)
|
| 20 |
print("Smolagents CodeAgent initialized.")
|
| 21 |
|
| 22 |
def __call__(self, question: str) -> str:
|