agentzero07 commited on
Commit
14631a3
·
verified ·
1 Parent(s): 390e783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
32
  return f"The current local time in {timezone} is: {local_time}"
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
-
36
  def get_weather(city: str) -> str:
37
  """A tool that fetches the current weather of a specified city.
38
  Args:
 
32
  return f"The current local time in {timezone} is: {local_time}"
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
+ @tool
36
  def get_weather(city: str) -> str:
37
  """A tool that fetches the current weather of a specified city.
38
  Args: