Stoyan Georgiev commited on
Commit
80a9436
·
1 Parent(s): 227ad99

Updated the Space with new features

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -21,7 +21,7 @@ def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
24
- """
25
  Get the current time in a specified timezone.
26
 
27
  Args:
@@ -30,9 +30,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
30
  Returns:
31
  str: The current time in the specified timezone in ISO 8601 format.
32
  """
33
- # Falls der Nutzer eine Stadt statt eines gültigen Zeitzonen-IDs angibt,
34
- # können wir eine Mapping-Tabelle verwenden.
35
-
36
  try:
37
  tz = pytz.timezone(timezone)
38
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
 
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
24
+ """
25
  Get the current time in a specified timezone.
26
 
27
  Args:
 
30
  Returns:
31
  str: The current time in the specified timezone in ISO 8601 format.
32
  """
 
 
 
33
  try:
34
  tz = pytz.timezone(timezone)
35
  local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")