Spaces:
Sleeping
Sleeping
Update app.py
Browse filesDefine duck tool
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 |
-
|
| 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()
|