Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,19 +26,19 @@ 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
|
33 |
count = arg2
|
34 |
-
|
35 |
|
36 |
# Create the prefix and appendix by repeating '#' count times
|
37 |
prefix = "#" * count
|
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()
|
30 |
|
31 |
# Define your search query
|
32 |
query = arg1
|
33 |
count = arg2
|
34 |
+
`
|
35 |
|
36 |
# Create the prefix and appendix by repeating '#' count times
|
37 |
prefix = "#" * count
|
38 |
appendix = "#" * count
|
39 |
|
40 |
# Use the .run() method to perform the search
|
41 |
+
search_results = duck_tool(query)
|
42 |
|
43 |
#return "What magic will you build ?"
|
44 |
|