jeipollack commited on
Commit
d6eb9ce
·
verified ·
1 Parent(s): 333b565

Update custom function with customer rating arg.

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,12 +11,13 @@ from Gradio_UI import GradioUI
11
  search_tool = DuckDuckGoSearchTool()
12
 
13
  @tool
14
- def find_open_restaurants(location: str, cuisine: str, timezone: 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
17
  Args:
18
  location: A string representing the location area to search for open restaurants.
19
  cuisine: A string representing the cuisine type (e.g. Asian, Indian, Italian, breakfast, lunch, etc.)
 
20
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
21
  """
22
  try:
 
11
  search_tool = DuckDuckGoSearchTool()
12
 
13
  @tool
14
+ def find_open_restaurants(location: str, cuisine: str, rating: float, timezone: 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
17
  Args:
18
  location: A string representing the location area to search for open restaurants.
19
  cuisine: A string representing the cuisine type (e.g. Asian, Indian, Italian, breakfast, lunch, etc.)
20
+ rating: A float representing the customer rating of the restaurant.
21
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
22
  """
23
  try: