Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ from retriever import guest_info_tool
|
|
| 28 |
model = HfApiModel()
|
| 29 |
|
| 30 |
# Initialize the web search tool
|
| 31 |
-
|
| 32 |
|
| 33 |
# Initialize the weather tool
|
| 34 |
#weather_info_tool = WeatherInfoTool()
|
|
@@ -42,7 +42,7 @@ model = HfApiModel()
|
|
| 42 |
# Create Alfred with all the tools
|
| 43 |
alfred = CodeAgent(
|
| 44 |
#tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool],
|
| 45 |
-
tools=[guest_info_tool],
|
| 46 |
model=model,
|
| 47 |
add_base_tools=True, # Add any additional base tools
|
| 48 |
planning_interval=3 # Enable planning every 3 steps
|
|
|
|
| 28 |
model = HfApiModel()
|
| 29 |
|
| 30 |
# Initialize the web search tool
|
| 31 |
+
search_tool = DuckDuckGoSearchTool()
|
| 32 |
|
| 33 |
# Initialize the weather tool
|
| 34 |
#weather_info_tool = WeatherInfoTool()
|
|
|
|
| 42 |
# Create Alfred with all the tools
|
| 43 |
alfred = CodeAgent(
|
| 44 |
#tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool],
|
| 45 |
+
tools=[guest_info_tool, search_tool],
|
| 46 |
model=model,
|
| 47 |
add_base_tools=True, # Add any additional base tools
|
| 48 |
planning_interval=3 # Enable planning every 3 steps
|