jc7k commited on
Commit
e8ee295
·
1 Parent(s): 55429f7

Updated HfApiModel() to use default model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 =- HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
19
- agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=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}")