tiinav commited on
Commit
d7f6383
·
verified ·
1 Parent(s): 5d30098

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ 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 calculate_time_difference_to_helsinki(local_time:datetime)-> str: #it's import 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 calculates the time difference in hours of current local time in a specified timezone to Helsinki
16
  Args:
@@ -27,7 +27,7 @@ def calculate_time_difference_to_helsinki(local_time:datetime)-> str: #it's impo
27
  return f"Error fetching the time difference to Helsinki: {str(e)}"
28
 
29
  @tool
30
- def get_current_time_in_timezone(timezone: str) -> Union[str, datetime]:
31
  """A tool that fetches the current local time in a specified timezone.
32
  Args:
33
  timezone: A string representing a valid timezone (e.g., 'America/New_York').
 
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
13
+ def calculate_time_difference_to_helsinki(local_time:datetime.datetime)-> str: #it's import 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 calculates the time difference in hours of current local time in a specified timezone to Helsinki
16
  Args:
 
27
  return f"Error fetching the time difference to Helsinki: {str(e)}"
28
 
29
  @tool
30
+ def get_current_time_in_timezone(timezone: str) -> Union[str, datetime.datetime]:
31
  """A tool that fetches the current local time in a specified timezone.
32
  Args:
33
  timezone: A string representing a valid timezone (e.g., 'America/New_York').