Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,8 @@ def simple_multiplier_tool(arg1:str, arg2:int)-> int: #it's import to specify th
|
|
25 |
Args:
|
26 |
arg1: the first integer
|
27 |
arg2: the second integer
|
|
|
|
|
28 |
"""
|
29 |
return arg1 * arg2
|
30 |
|
@@ -67,7 +69,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
67 |
|
68 |
agent = CodeAgent(
|
69 |
model=model,
|
70 |
-
tools=[final_answer, image_generation_tool, DuckDuckGoSearchTool
|
71 |
max_steps=6,
|
72 |
verbosity_level=1,
|
73 |
grammar=None,
|
|
|
25 |
Args:
|
26 |
arg1: the first integer
|
27 |
arg2: the second integer
|
28 |
+
Returns:
|
29 |
+
An integer representing the multiplication result.
|
30 |
"""
|
31 |
return arg1 * arg2
|
32 |
|
|
|
69 |
|
70 |
agent = CodeAgent(
|
71 |
model=model,
|
72 |
+
tools=[final_answer, image_generation_tool, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
|
73 |
max_steps=6,
|
74 |
verbosity_level=1,
|
75 |
grammar=None,
|