Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,8 +17,8 @@ def get_weather_at_location(location:str)-> str: #it's import to specify the ret
|
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
return requests.get(f"https://wttr.in/{location}?format=3").text
|
| 20 |
-
except Exception as
|
| 21 |
-
return f"Error fetching weather for city '{location}': {str(
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
return requests.get(f"https://wttr.in/{location}?format=3").text
|
| 20 |
+
except Exception as e:
|
| 21 |
+
return f"Error fetching weather for city '{location}': {str(e)}"
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|