Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def multiply_by_eleven(arg1:int)-> int: #it's import to specify the return type
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that returns result of multiplying the argument by 11
|
| 15 |
Args:
|
| 16 |
-
arg1: integer number
|
| 17 |
"""
|
| 18 |
return arg1*11
|
| 19 |
|
|
@@ -54,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|
|
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that returns result of multiplying the argument by 11
|
| 15 |
Args:
|
| 16 |
+
arg1: an integer number
|
| 17 |
"""
|
| 18 |
return arg1*11
|
| 19 |
|
|
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
+
tools=[final_answer,multiply_by_eleven,get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|