Spaces:
Sleeping
Sleeping
Add docstring to todays_date functions!
Browse files
app.py
CHANGED
|
@@ -22,6 +22,11 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def todays_date():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
today = date.today()
|
| 26 |
return today.strftime("%b %d, %Y")
|
| 27 |
|
|
|
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def todays_date():
|
| 25 |
+
""" Returns the current date in the format of 'Month Day, Year'
|
| 26 |
+
|
| 27 |
+
Returns:
|
| 28 |
+
str: The current date in the format of 'Month Day
|
| 29 |
+
"""
|
| 30 |
today = date.today()
|
| 31 |
return today.strftime("%b %d, %Y")
|
| 32 |
|