Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ def search_web_with_duckduckgo(query: str, max_results: int = 5)-> str: #it's im
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""Searches the web using DuckDuckGo's API and returns results.
|
| 15 |
Args:
|
| 16 |
-
query
|
| 17 |
-
max_results
|
| 18 |
"""
|
| 19 |
search_tool = DuckDuckGoSearchTool(max_results=max_results)
|
| 20 |
results = search_tool.forward(query)
|
|
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""Searches the web using DuckDuckGo's API and returns results.
|
| 15 |
Args:
|
| 16 |
+
query: The search query.
|
| 17 |
+
max_results: The maximum number of results to return.
|
| 18 |
"""
|
| 19 |
search_tool = DuckDuckGoSearchTool(max_results=max_results)
|
| 20 |
results = search_tool.forward(query)
|