AkseliManninen commited on
Commit
644201d
·
verified ·
1 Parent(s): fc2d895

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,9 +15,9 @@ def my_custom_tool(country: str)-> str: #it's import to specify the return type
15
  Args:
16
  country (str): The country for which to search information.
17
  """
18
- search = DuckSearch()
19
 
20
- result = search.run(f"What is the polulation of {country}?")
21
  return result
22
 
23
  @tool
 
15
  Args:
16
  country (str): The country for which to search information.
17
  """
18
+ search_tool = DuckSearch()
19
 
20
+ result = search_tool.run(f"What is the polulation of {country}?")
21
  return result
22
 
23
  @tool