matthartman commited on
Commit
f65a009
·
verified ·
1 Parent(s): 9060ba2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 my_custom_toocl(arg1:str, arg2:int)-> 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 does nothing yet
17
  Args:
18
- arg1: the first argument
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