diegocp01 commited on
Commit
83d3181
·
verified ·
1 Parent(s): c5217d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 until the deadline.
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: