Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def get_weather(city: str) -> str: # Fixed comment syntax and function name
|
|
| 20 |
"""
|
| 21 |
try:
|
| 22 |
# Initialize the search tool correctly
|
| 23 |
-
web_search_tool = DuckDuckGoSearchTool(max_results=3
|
| 24 |
web_search_tool.setup() # Call setup on the instance, not the class
|
| 25 |
|
| 26 |
# Search for weather information
|
|
|
|
| 20 |
"""
|
| 21 |
try:
|
| 22 |
# Initialize the search tool correctly
|
| 23 |
+
web_search_tool = DuckDuckGoSearchTool(max_results=3)
|
| 24 |
web_search_tool.setup() # Call setup on the instance, not the class
|
| 25 |
|
| 26 |
# Search for weather information
|