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 destiny_still_arrives(name:str, dob:str)->
|
15 |
# Keep this format for the description / args / args description but feel free to modify the tool
|
16 |
"""A tool that takes a name, age or date of birth as input. It outputs the meaning of the name, an image of that person's birthstone and a horoscope reading of the day.
|
17 |
Args:
|
@@ -53,7 +53,7 @@ def destiny_still_arrives(name:str, dob:str)-> str: #it's import to specify the
|
|
53 |
|
54 |
agent = CodeAgent(
|
55 |
model=model,
|
56 |
-
tools=[final_answer,image_generation_tool], ## add your tools here (don't remove final answer)
|
57 |
max_steps=6,
|
58 |
verbosity_level=1,
|
59 |
grammar=None,
|
|
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
13 |
@tool
|
14 |
+
def destiny_still_arrives(name:str, dob:str)-> image: #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 name, age or date of birth as input. It outputs the meaning of the name, an image of that person's birthstone and a horoscope reading of the day.
|
17 |
Args:
|
|
|
53 |
|
54 |
agent = CodeAgent(
|
55 |
model=model,
|
56 |
+
tools=[final_answer,image_generation_tool,DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
|
57 |
max_steps=6,
|
58 |
verbosity_level=1,
|
59 |
grammar=None,
|