Spaces:
Sleeping
Sleeping
updated 'prompt' argument in web_search function
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 22 |
def web_search(prompt: str) -> str:
|
| 23 |
""" A tool that searches a given prompt from the internet and returns best 5 results
|
| 24 |
Args:
|
| 25 |
-
prompt
|
| 26 |
"""
|
| 27 |
search_tool = DuckDuckGoSearchTool(max_results=5)
|
| 28 |
return search_tool(prompt)
|
|
|
|
| 22 |
def web_search(prompt: str) -> str:
|
| 23 |
""" A tool that searches a given prompt from the internet and returns best 5 results
|
| 24 |
Args:
|
| 25 |
+
prompt: the query the user inputs (e.g., what is the biggest country in the world).
|
| 26 |
"""
|
| 27 |
search_tool = DuckDuckGoSearchTool(max_results=5)
|
| 28 |
return search_tool(prompt)
|