Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 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:
|
|
|
|
| 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 |
|