Spaces:
Sleeping
Sleeping
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:
|
|
@@ -66,9 +66,9 @@ def destiny_still_arrives(name:str, dob:str)-> image: #it's import to specify th
|
|
| 66 |
|
| 67 |
|
| 68 |
if birthstone in image_urls:
|
| 69 |
-
response = agent.run(f"Generate an image of the following birthstone: {birthstone}")
|
| 70 |
else:
|
| 71 |
-
response = agent.run("
|
| 72 |
|
| 73 |
return response
|
| 74 |
|
|
|
|
| 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)-> dict: #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:
|
|
|
|
| 66 |
|
| 67 |
|
| 68 |
if birthstone in image_urls:
|
| 69 |
+
response = agent.run(f"Please find out the meaning of the following name: {name}, then Generate an image of the following birthstone: {birthstone} and finally a horoscope reading of the current day")
|
| 70 |
else:
|
| 71 |
+
response = agent.run(f"Please find out the meaning of the following name: {name}, then finally a horoscope reading of the current day")
|
| 72 |
|
| 73 |
return response
|
| 74 |
|