Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,18 @@ import pytz
|
|
| 5 |
import yaml
|
| 6 |
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
|
|
|
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
+
import codecs
|
| 9 |
+
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
+
@tool
|
| 13 |
+
def rot13(text:str)->str:
|
| 14 |
+
""" A tool that encrypts text using rot13.
|
| 15 |
+
Args:
|
| 16 |
+
text: str that will be encrypted.
|
| 17 |
+
"""
|
| 18 |
+
return codecs.encode(text, 'rot_13')
|
| 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
|