Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|