Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,6 +37,8 @@ def get_weather_info(city: str) -> str:
|
|
| 37 |
f"Conditions: {conditions}\n"
|
| 38 |
f"Humidity: {humidity}%\n"
|
| 39 |
f"Wind Speed: {wind_speed} m/s")
|
|
|
|
|
|
|
| 40 |
|
| 41 |
@tool
|
| 42 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 37 |
f"Conditions: {conditions}\n"
|
| 38 |
f"Humidity: {humidity}%\n"
|
| 39 |
f"Wind Speed: {wind_speed} m/s")
|
| 40 |
+
except Exception as e:
|
| 41 |
+
return f"Error fetching weather for city '{city}': {str(e)}"
|
| 42 |
|
| 43 |
@tool
|
| 44 |
def get_current_time_in_timezone(timezone: str) -> str:
|