Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,16 @@ from Gradio_UI import GradioUI
|
|
10 |
|
11 |
|
12 |
# Below is the new deadline calculator tool
|
|
|
|
|
13 |
@tool
|
14 |
def deadline_calculator(start_date: str, days: int) -> str:
|
15 |
"""
|
16 |
A tool that calculates the deadline date based on a given start date and duration in days.
|
17 |
|
18 |
Args:
|
19 |
-
start_date (str): The starting date in the format 'YYYY-MM-DD'.
|
20 |
-
days (int): The number of days
|
21 |
|
22 |
Returns:
|
23 |
str: A JSON-formatted string containing:
|
|
|
10 |
|
11 |
|
12 |
# Below is the new deadline calculator tool
|
13 |
+
|
14 |
+
|
15 |
@tool
|
16 |
def deadline_calculator(start_date: str, days: int) -> str:
|
17 |
"""
|
18 |
A tool that calculates the deadline date based on a given start date and duration in days.
|
19 |
|
20 |
Args:
|
21 |
+
start_date (str): The starting date for the calculation. It must be in the format 'YYYY-MM-DD'.
|
22 |
+
days (int): The number of days to add to the start date to compute the deadline.
|
23 |
|
24 |
Returns:
|
25 |
str: A JSON-formatted string containing:
|