roger33303 commited on
Commit
9df7e35
·
verified ·
1 Parent(s): 8e06977

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -8,10 +8,10 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
  @tool
11
- def string_reverse_tool(arg1:str)-> str: #it's import to specify the return type
12
- #Keep this format for the description / args / args description but feel free to modify the tool
13
- """A tool that can reverse any string
14
- Args: arg1: string that needed to be reversed.
15
  """
16
  s = arg1[::-1]
17
 
@@ -38,7 +38,8 @@ web_search_tool =DuckDuckGoSearchTool()
38
  @tool
39
  def search_web(question: str) ->str:
40
  """A tool that can go to web and search the entire web to find the answer.
41
- Args: question: actual question that needed to be searched."""
 
42
  result = web_search_tool(question)
43
  return result
44
 
 
8
  from Gradio_UI import GradioUI
9
 
10
  @tool
11
+ def string_reverse_tool(senstence: str)-> str: #it's import to specify the return type
12
+ """A tool that can reverse any string.
13
+ Args:
14
+ sentence: Sentence that needed to be reversed.
15
  """
16
  s = arg1[::-1]
17
 
 
38
  @tool
39
  def search_web(question: str) ->str:
40
  """A tool that can go to web and search the entire web to find the answer.
41
+ Args:
42
+ question: actual question that needed to be searched."""
43
  result = web_search_tool(question)
44
  return result
45