techarmour commited on
Commit
77c9e74
·
verified ·
1 Parent(s): e89d353

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
26
  """
27
 
28
  # Instantiate the duck_tool
29
- duck_tool = DuckDuckGoSearchTool()
30
 
31
  # Define your search query
32
  query = arg1
@@ -38,7 +38,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
38
  appendix = "#" * count
39
 
40
  # Use the .run() method to perform the search
41
- search_results = duck_tool.run(query)
42
 
43
  #return "What magic will you build ?"
44
 
 
26
  """
27
 
28
  # Instantiate the duck_tool
29
+ duck_tool = DuckDuckGoSearchTool(query)
30
 
31
  # Define your search query
32
  query = arg1
 
38
  appendix = "#" * count
39
 
40
  # Use the .run() method to perform the search
41
+ search_results = duck_tool
42
 
43
  #return "What magic will you build ?"
44