8PeopleINC commited on
Commit
1b39568
·
verified ·
1 Parent(s): ffa76fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,14 +14,14 @@ def ddg_tool(query:str, city:str, max_results:int=5)-> list: # it's important to
14
  # Keep this format for the tool description / args description but feel free to modify the tool
15
  """A tool that searches for restaraunts ina particular location using DuckDuckGo search.
16
  Args:
17
- query: The type of restaraunt or keyword (e.g. "italian").
18
- city: The name of the city the searched for restaraunts are located in (e.g. "San Diego").
19
  max_results: Number of results to return. Maximum number is 5.
20
 
21
  Returns: List of dictionaries with Restaurant Name, city, and URL.
22
  """
23
  # Instantiate the tool
24
- ddg = DuckDuckGoSearchTool()
25
 
26
  # Modify query to include city for better results
27
  full_query = f"{query} restaurant in {city}"
 
14
  # Keep this format for the tool description / args description but feel free to modify the tool
15
  """A tool that searches for restaraunts ina particular location using DuckDuckGo search.
16
  Args:
17
+ query: The type of restaraunt cuisine or keyword (e.g. "italian").
18
+ city: The city in which the restaraunts are located (e.g. "San Diego").
19
  max_results: Number of results to return. Maximum number is 5.
20
 
21
  Returns: List of dictionaries with Restaurant Name, city, and URL.
22
  """
23
  # Instantiate the tool
24
+ ddg_tool = DuckDuckGoSearchTool()
25
 
26
  # Modify query to include city for better results
27
  full_query = f"{query} restaurant in {city}"