Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,7 @@ from Gradio_UI import GradioUI
|
|
| 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:
|
| 15 |
-
arg1: string.
|
| 16 |
"""
|
| 17 |
s = arg1[::-1]
|
| 18 |
|
|
@@ -58,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
model=model,
|
| 61 |
-
tools=[final_answer,get_current_time_in_timezone
|
| 62 |
max_steps=6,
|
| 63 |
verbosity_level=1,
|
| 64 |
grammar=None,
|
|
|
|
| 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 |
|
|
|
|
| 57 |
|
| 58 |
agent = CodeAgent(
|
| 59 |
model=model,
|
| 60 |
+
tools=[final_answer,get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
| 61 |
max_steps=6,
|
| 62 |
verbosity_level=1,
|
| 63 |
grammar=None,
|