Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,13 +10,14 @@ 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 birthday_calulator(day:int, month:int, year:int)->
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
"""A tool that add two integers and produce integer output
|
| 16 |
Args:
|
| 17 |
arg1: day of birth
|
| 18 |
arg2: month of birth
|
| 19 |
arg3: year of birth
|
|
|
|
| 20 |
"""
|
| 21 |
today = date.today()
|
| 22 |
birth_date = date(year, month, day)
|
|
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
+
def birthday_calulator(day:int, month:int, year:int)-> int: #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 add two integers and produce integer output
|
| 16 |
Args:
|
| 17 |
arg1: day of birth
|
| 18 |
arg2: month of birth
|
| 19 |
arg3: year of birth
|
| 20 |
+
output: age
|
| 21 |
"""
|
| 22 |
today = date.today()
|
| 23 |
birth_date = date(year, month, day)
|