Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,13 @@ from Gradio_UI import GradioUI
|
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
13 |
@tool
|
14 |
-
def
|
15 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
16 |
-
"""A tool that
|
17 |
Args:
|
18 |
-
arg1: the
|
19 |
-
arg2: the second argument
|
20 |
"""
|
|
|
21 |
return "What magic will you build ?"
|
22 |
|
23 |
@tool
|
|
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
13 |
@tool
|
14 |
+
def search(arg1:str)-> str: #it's import to specify the return type
|
15 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
16 |
+
"""A tool that searches duck duck go
|
17 |
Args:
|
18 |
+
arg1: the search term
|
|
|
19 |
"""
|
20 |
+
search_results = get_duckduckgo_search_results(arg1)
|
21 |
return "What magic will you build ?"
|
22 |
|
23 |
@tool
|