Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,9 @@ def search_web(query:str)-> str: #it's import to specify the return type
|
|
| 14 |
Args:
|
| 15 |
query: what you want to search
|
| 16 |
"""
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
@tool
|
| 20 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 14 |
Args:
|
| 15 |
query: what you want to search
|
| 16 |
"""
|
| 17 |
+
search_tool = DuckDuckGoSearchTool()
|
| 18 |
+
results = search_tool(query)
|
| 19 |
+
return results
|
| 20 |
|
| 21 |
@tool
|
| 22 |
def get_current_time_in_timezone(timezone: str) -> str:
|