Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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 |
|