qwikQ8 commited on
Commit
148c7d6
·
verified ·
1 Parent(s): 9cbdba8

Update app.py

Browse files

Define duck tool

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
27
  # from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
28
 
29
  # # Initialize the DuckDuckGo search tool
30
- search_tool = DuckDuckGoSearchTool()
31
 
32
  # # Example usage
33
  # results = search_tool("Who's the current President of France?")
@@ -91,7 +91,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
91
  # final_answer = FinalAnswerTool()
92
 
93
  # Initialize the web search tool
94
- # search_tool = DuckDuckGoSearchTool()
95
 
96
  ## Initialize the weather tool
97
  #weather_info_tool = WeatherInfoTool()
 
27
  # from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
28
 
29
  # # Initialize the DuckDuckGo search tool
30
+ #search_tool = DuckDuckGoSearchTool()
31
 
32
  # # Example usage
33
  # results = search_tool("Who's the current President of France?")
 
91
  # final_answer = FinalAnswerTool()
92
 
93
  # Initialize the web search tool
94
+ search_tool = DuckDuckGoSearchTool()
95
 
96
  ## Initialize the weather tool
97
  #weather_info_tool = WeatherInfoTool()