Spaces:
Sleeping
Sleeping
Update description of arg: location
Browse files
app.py
CHANGED
|
@@ -7,6 +7,9 @@ from tools.final_answer import FinalAnswerTool
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
def find_open_restaurants(location:str, timezone:str)-> str: #it's import to specify the return type
|
|
@@ -14,7 +17,7 @@ def find_open_restaurants(location:str, timezone:str)-> str: #it's import to spe
|
|
| 14 |
Finds restaurants currently open in a specified location.
|
| 15 |
|
| 16 |
Args:
|
| 17 |
-
location (str): The city or area to
|
| 18 |
timezone (str): The timezone of the location (e.g., 'America/New_York').
|
| 19 |
|
| 20 |
Returns:
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
+
# Initialize DuckDuckGo search tool
|
| 11 |
+
search_tool = DuckDuckGoSearchTool()
|
| 12 |
+
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
def find_open_restaurants(location:str, timezone:str)-> str: #it's import to specify the return type
|
|
|
|
| 17 |
Finds restaurants currently open in a specified location.
|
| 18 |
|
| 19 |
Args:
|
| 20 |
+
location (str): The name of the city or area where the user wants to find open restaurants.
|
| 21 |
timezone (str): The timezone of the location (e.g., 'America/New_York').
|
| 22 |
|
| 23 |
Returns:
|