Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
-
def
|
| 14 |
# Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
"""A tool that verifies if `b` is a linear combination of the columns of `A`
|
| 16 |
Args:
|
|
@@ -60,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 60 |
|
| 61 |
agent = CodeAgent(
|
| 62 |
model=model,
|
| 63 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 64 |
max_steps=6,
|
| 65 |
verbosity_level=1,
|
| 66 |
grammar=None,
|
|
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
+
def has_solution(A:np.ndarray, b:np.ndarray)-> bool: # it's important to specify the return type
|
| 14 |
# Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
"""A tool that verifies if `b` is a linear combination of the columns of `A`
|
| 16 |
Args:
|
|
|
|
| 60 |
|
| 61 |
agent = CodeAgent(
|
| 62 |
model=model,
|
| 63 |
+
tools=[has_solution, get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
|
| 64 |
max_steps=6,
|
| 65 |
verbosity_level=1,
|
| 66 |
grammar=None,
|