Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,10 +15,10 @@ def ddg_tool(query:str, location:str, max_results:int=5)-> list: # it's importan
|
|
| 15 |
"""A tool that searches for restaraunts ina particular location using DuckDuckGo search.
|
| 16 |
Args:
|
| 17 |
query: The type of restaraunt or keyword (e.g. "italian").
|
| 18 |
-
|
| 19 |
max_results: Number of results to return. Maximum number is 5.
|
| 20 |
|
| 21 |
-
Returns: List of dictionaries with Restaurant Name,
|
| 22 |
"""
|
| 23 |
results = []
|
| 24 |
with DuckDuckGoSearchTool as ddg_tool:
|
|
|
|
| 15 |
"""A tool that searches for restaraunts ina particular location using DuckDuckGo search.
|
| 16 |
Args:
|
| 17 |
query: The type of restaraunt or keyword (e.g. "italian").
|
| 18 |
+
city: The name of the city the searched for restaraunts are located in (e.g. "San Diego").
|
| 19 |
max_results: Number of results to return. Maximum number is 5.
|
| 20 |
|
| 21 |
+
Returns: List of dictionaries with Restaurant Name, city, and URL.
|
| 22 |
"""
|
| 23 |
results = []
|
| 24 |
with DuckDuckGoSearchTool as ddg_tool:
|