Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,7 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
-
def supeng_tool(arg1:float, arg2:float)-> float:
|
| 12 |
-
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 13 |
"""A tool that get supeng result of two numbers
|
| 14 |
Args:
|
| 15 |
arg1: the first number
|
|
@@ -58,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
model=model,
|
| 61 |
-
tools=[final_answer],
|
| 62 |
max_steps=6,
|
| 63 |
verbosity_level=1,
|
| 64 |
grammar=None,
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
+
def supeng_tool(arg1:float, arg2:float)-> float:
|
|
|
|
| 12 |
"""A tool that get supeng result of two numbers
|
| 13 |
Args:
|
| 14 |
arg1: the first number
|
|
|
|
| 57 |
|
| 58 |
agent = CodeAgent(
|
| 59 |
model=model,
|
| 60 |
+
tools=[supeng_tool, final_answer], ## add your tools here (don't remove final answer)
|
| 61 |
max_steps=6,
|
| 62 |
verbosity_level=1,
|
| 63 |
grammar=None,
|