Spaces:
Sleeping
Sleeping
Updated HfApiModel() to use default model
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
15 |
class BasicAgent:
|
16 |
def __init__(self):
|
17 |
print("BasicAgent initialized.")
|
18 |
-
model
|
19 |
-
agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=
|
20 |
self.agent = agent
|
21 |
print(f"Agent initialized with model: {model.model_id}")
|
22 |
print(f"Agent initialized with tools: {self.agent.tools}")
|
|
|
15 |
class BasicAgent:
|
16 |
def __init__(self):
|
17 |
print("BasicAgent initialized.")
|
18 |
+
# Initialize the agent with a model and tools
|
19 |
+
agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
|
20 |
self.agent = agent
|
21 |
print(f"Agent initialized with model: {model.model_id}")
|
22 |
print(f"Agent initialized with tools: {self.agent.tools}")
|