Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,8 +21,9 @@ def my_custom_tool(query: str)-> str: #it's import to specify the return type
|
|
| 21 |
query: The search query string.
|
| 22 |
"""
|
| 23 |
search_tool = DuckDuckGoSearchTool()
|
| 24 |
-
results = search_tool
|
| 25 |
return f"Search results for '{query}':\n" + "\n".join(results)
|
|
|
|
| 26 |
|
| 27 |
@tool
|
| 28 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 21 |
query: The search query string.
|
| 22 |
"""
|
| 23 |
search_tool = DuckDuckGoSearchTool()
|
| 24 |
+
results = search_tool(query)
|
| 25 |
return f"Search results for '{query}':\n" + "\n".join(results)
|
| 26 |
+
|
| 27 |
|
| 28 |
@tool
|
| 29 |
def get_current_time_in_timezone(timezone: str) -> str:
|