Spaces:
Sleeping
Sleeping
Add @tool decorator to new function
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
|
|
| 10 |
# Initialize DuckDuckGo search tool
|
| 11 |
search_tool = DuckDuckGoSearchTool()
|
| 12 |
|
| 13 |
-
|
| 14 |
def find_open_restaurants(location: str, cuisine: str)-> str: # it's important to specify the return type
|
| 15 |
# Keep this format for the tool description / args description but feel free to modify the tool
|
| 16 |
"""A tool that does nothing yet
|
|
|
|
| 10 |
# Initialize DuckDuckGo search tool
|
| 11 |
search_tool = DuckDuckGoSearchTool()
|
| 12 |
|
| 13 |
+
@tool
|
| 14 |
def find_open_restaurants(location: str, cuisine: str)-> str: # it's important to specify the return type
|
| 15 |
# Keep this format for the tool description / args description but feel free to modify the tool
|
| 16 |
"""A tool that does nothing yet
|