Spaces:
Sleeping
Sleeping
update tool
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ def my_search_tool(query:str)-> str: #it's import to specify the return type
|
|
16 |
query: the user query
|
17 |
"""
|
18 |
try:
|
19 |
-
search_tool = DuckDuckGoSearchTool(
|
20 |
|
21 |
-
return search_tool
|
22 |
|
23 |
except Exception as e:
|
24 |
return f"Error fetching response for '{query}': {str(e)}"
|
|
|
16 |
query: the user query
|
17 |
"""
|
18 |
try:
|
19 |
+
search_tool = DuckDuckGoSearchTool()
|
20 |
|
21 |
+
return search_tool(query)
|
22 |
|
23 |
except Exception as e:
|
24 |
return f"Error fetching response for '{query}': {str(e)}"
|