Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from Gradio_UI import GradioUI
|
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
13 |
@tool
|
14 |
-
def
|
15 |
# Keep this format for the description / args / args description but feel free to modify the tool
|
16 |
"""A tool that takes a date of birth as input. It outputs the birthstone of that month present in the date of birth
|
17 |
Args:
|
@@ -78,7 +78,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
78 |
|
79 |
agent = CodeAgent(
|
80 |
model=model,
|
81 |
-
tools=[final_answer, get_current_time_in_timezone,image_generation_tool,
|
82 |
max_steps=6,
|
83 |
verbosity_level=1,
|
84 |
grammar=None,
|
|
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
13 |
@tool
|
14 |
+
def get_birth_stone(dob:str)-> str: #it's import to specify the return type
|
15 |
# Keep this format for the description / args / args description but feel free to modify the tool
|
16 |
"""A tool that takes a date of birth as input. It outputs the birthstone of that month present in the date of birth
|
17 |
Args:
|
|
|
78 |
|
79 |
agent = CodeAgent(
|
80 |
model=model,
|
81 |
+
tools=[final_answer, get_current_time_in_timezone,image_generation_tool,get_birth_stone,], ## add your tools here (don't remove final answer)
|
82 |
max_steps=6,
|
83 |
verbosity_level=1,
|
84 |
grammar=None,
|