olegphenomenon commited on
Commit
ea05842
·
verified ·
1 Parent(s): 9a8c112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -7,6 +7,16 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
 
 
 
 
 
 
 
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
 
7
 
8
  from Gradio_UI import GradioUI
9
 
10
+ @tool
11
+ def search_info(query: str) -> str:
12
+ """
13
+ A tool that get infromation from Search Engine DuckDuckGo
14
+ Args:
15
+ query: query for search infromation
16
+ """
17
+
18
+ return DuckDuckGoSearchTool(query)
19
+
20
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
21
  @tool
22
  def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type