AlexxRubio commited on
Commit
51784ac
Β·
verified Β·
1 Parent(s): f1e78fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -3,14 +3,11 @@ import random
3
  from smolagents import GradioUI, CodeAgent, HfApiModel
4
 
5
  # Import our custom tools from their modules
6
- from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
7
  from retriever import load_guest_dataset
8
 
9
  # Initialize the Hugging Face model
10
- model = HfApiModel(
11
- model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
12
- provider="hf-inference"
13
- )
14
 
15
  # Initialize the web search tool
16
  search_tool = DuckDuckGoSearchTool()
@@ -24,9 +21,11 @@ hub_stats_tool = HubStatsTool()
24
  # Load the guest dataset and initialize the guest info tool
25
  guest_info_tool = load_guest_dataset()
26
 
 
 
27
  # Create Alfred with all the tools
28
  alfred = CodeAgent(
29
- tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool],
30
  model=model,
31
  add_base_tools=True, # Add any additional base tools
32
  planning_interval=3 # Enable planning every 3 steps
 
3
  from smolagents import GradioUI, CodeAgent, HfApiModel
4
 
5
  # Import our custom tools from their modules
6
+ from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool, GalaOutfitTool
7
  from retriever import load_guest_dataset
8
 
9
  # Initialize the Hugging Face model
10
+ model = HfApiModel()
 
 
 
11
 
12
  # Initialize the web search tool
13
  search_tool = DuckDuckGoSearchTool()
 
21
  # Load the guest dataset and initialize the guest info tool
22
  guest_info_tool = load_guest_dataset()
23
 
24
+ gala_outfit_tool = GalaOutfitTool()
25
+
26
  # Create Alfred with all the tools
27
  alfred = CodeAgent(
28
+ tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool, gala_outfit_tool],
29
  model=model,
30
  add_base_tools=True, # Add any additional base tools
31
  planning_interval=3 # Enable planning every 3 steps