enai commited on
Commit
1452b1e
·
verified ·
1 Parent(s): f966bb1

Fix return statement

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def get_current_local_time_and_timezone()-> str:
15
  """
16
  local_timezone = datetime.now().astimezone().tzinfo # Get local timezone
17
  local_time = datetime.now(local_tz).strftime('%Y-%m-%d %H:%M:%S')
18
- return return f"The current local time in {local_timezone} is: {local_time}"
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str:
 
15
  """
16
  local_timezone = datetime.now().astimezone().tzinfo # Get local timezone
17
  local_time = datetime.now(local_tz).strftime('%Y-%m-%d %H:%M:%S')
18
+ return f"The current local time in {local_timezone} is: {local_time}"
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str: