Luis commited on
Commit
72746e0
·
verified ·
1 Parent(s): 77ac4b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -12,18 +12,16 @@ from Gradio_UI import GradioUI
12
  # Belo is an example of a tool that does nothing. Amaze us with your creativity !
13
  @tool
14
  def time_left_for_event(arg1:str, arg2:int)-> str: #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 calculates the time left for a certain event, and returns in a very convenient way the time between today and that events date
17
  Args:
18
- arg1: the event name
19
  arg2: the day of that event in calendar time
20
  """
21
 
22
-
23
  local_time = datetime.datetime.now()
24
  future_time = datetime.datetime(arg2)
25
  time_between = local_time - future_time
26
- return f"there are {time_between} before the {arg1}"
27
 
28
 
29
 
 
12
  # Belo is an example of a tool that does nothing. Amaze us with your creativity !
13
  @tool
14
  def time_left_for_event(arg1:str, arg2:int)-> str: #it's import to specify the return type
 
15
  """A tool that calculates the time left for a certain event, and returns in a very convenient way the time between today and that events date
16
  Args:
17
+ arg1: the event name, this can be wedding, birthday, trip, travel, work event, reunion, etc..
18
  arg2: the day of that event in calendar time
19
  """
20
 
 
21
  local_time = datetime.datetime.now()
22
  future_time = datetime.datetime(arg2)
23
  time_between = local_time - future_time
24
+ return f"you have {time_between} before the {arg1}"
25
 
26
 
27