blade57 commited on
Commit
bd660e4
·
verified ·
1 Parent(s): 06c2786

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,17 +9,17 @@ from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
9
  # initialize required objects
10
  model = HfApiModel()
11
  search_tool = DuckDuckGoSearchTool()
12
- weather_info = WeatherInfoTool()
13
- hub_stats = HubStatsTool()
14
  guest_info_tool = load_guest_dataset()
15
 
16
  # create agent
17
  alfred_agent = CodeAgent(
18
- tools=[search_tool, weather_info, hub_stats],
19
  model=model,
20
  add_base_tools=True,
21
  planning_interval=3 # ?
22
  )
23
 
24
  if __name__ == "__main__":
25
- GradioUI(alfred).launch()
 
9
  # initialize required objects
10
  model = HfApiModel()
11
  search_tool = DuckDuckGoSearchTool()
12
+ weather_info_tool = WeatherInfoTool()
13
+ hub_stats_tool = HubStatsTool()
14
  guest_info_tool = load_guest_dataset()
15
 
16
  # create agent
17
  alfred_agent = CodeAgent(
18
+ tools=[search_tool, weather_info_tool, hub_stats_tool],
19
  model=model,
20
  add_base_tools=True,
21
  planning_interval=3 # ?
22
  )
23
 
24
  if __name__ == "__main__":
25
+ GradioUI(alfred_agent).launch()