Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,11 @@ from Gradio_UI import GradioUI
|
|
11 |
@tool
|
12 |
def fetch_top_restaurants(location: str): #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
-
"""A tool that fetches the
|
15 |
-
Args:
|
16 |
-
location (str): The location to search for restaurants.
|
17 |
"""
|
18 |
-
|
|
|
19 |
|
20 |
# Construct the query for DuckDuckGo
|
21 |
query = f"top 5 restaurants in {location}"
|
|
|
11 |
@tool
|
12 |
def fetch_top_restaurants(location: str): #it's import to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
+
"""A tool that fetches the top retraunts in a given location
|
15 |
+
Args:location (str): The location to search for restaurants.
|
|
|
16 |
"""
|
17 |
+
Returns:
|
18 |
+
list: A list of dictionaries containing restaurant names and links.
|
19 |
|
20 |
# Construct the query for DuckDuckGo
|
21 |
query = f"top 5 restaurants in {location}"
|