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 |
-
"""A tool that can reverse any string.
|
| 13 |
-
Args:
|
| 14 |
-
|
| 15 |
"""
|
| 16 |
s = arg1[::-1]
|
| 17 |
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
+
def string_reverse_tool(sentence: str)-> str: #it's import to specify the return type
|
| 12 |
+
"""A tool that can reverse any string given to it.
|
| 13 |
+
Args:
|
| 14 |
+
sentence: Sentence that needed to be reversed.
|
| 15 |
"""
|
| 16 |
s = arg1[::-1]
|
| 17 |
|