Spaces:
Runtime error

Mtchmann commited on
Commit
a8e5cd1
·
verified ·
1 Parent(s): 5dc6ca1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -72,8 +72,6 @@ from smolagents import CodeAgent, InferenceClientModel
72
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
73
  from retriever import load_guest_dataset
74
 
75
- # Initialize the Hugging Face model
76
- model = InferenceClientModel()
77
 
78
  # Initialize the web serarch tool
79
  search_tool = DuckDuckGoSearchTool()
@@ -90,7 +88,7 @@ guest_info_tool = load_guest_dataset()
90
  # Create Alfred with all the tools
91
  alfred = CodeAgent(
92
  tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool],
93
- model=model,
94
  add_base_tools=True, # Add any additional base tools
95
  planning_interval=3 # Enable planning every 3 steps
96
  )
 
72
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
73
  from retriever import load_guest_dataset
74
 
 
 
75
 
76
  # Initialize the web serarch tool
77
  search_tool = DuckDuckGoSearchTool()
 
88
  # Create Alfred with all the tools
89
  alfred = CodeAgent(
90
  tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool],
91
+ model=client,
92
  add_base_tools=True, # Add any additional base tools
93
  planning_interval=3 # Enable planning every 3 steps
94
  )