Shahrukh2016 commited on
Commit
97d50a4
·
verified ·
1 Parent(s): c3e31a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ def search_tool(arg1: str)-> str: #it's import to specify the return type
15
  Args:
16
  arg1: the first argument
17
  """
18
- response = DuckDuckGoSearchTool(arg1=arg1)
 
19
  return response
20
 
21
  @tool
 
15
  Args:
16
  arg1: the first argument
17
  """
18
+ search_tool = DuckDuckGoSearchTool()
19
+ response = search_tool(arg1=arg1)
20
  return response
21
 
22
  @tool