jeipollack commited on
Commit
9c71233
·
verified ·
1 Parent(s): d10d1b1

Add @tool decorator to new function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
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
  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