Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,14 @@ def weather_icon(code):
|
|
| 123 |
|
| 124 |
@tool
|
| 125 |
def plot_weather(weather_data: list) -> str:
|
| 126 |
-
"""Generate stylized weather visualization with icons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
times = [entry["time"][11:16] for entry in weather_data]
|
| 129 |
temps = [entry["temperature"] for entry in weather_data]
|
|
|
|
| 123 |
|
| 124 |
@tool
|
| 125 |
def plot_weather(weather_data: list) -> str:
|
| 126 |
+
"""Generate stylized weather visualization with icons and uncertainty bands.
|
| 127 |
+
|
| 128 |
+
Args:
|
| 129 |
+
weather_data: A list of dictionaries containing hourly weather data.
|
| 130 |
+
|
| 131 |
+
Returns:
|
| 132 |
+
A string file path to the generated image.
|
| 133 |
+
"""
|
| 134 |
|
| 135 |
times = [entry["time"][11:16] for entry in weather_data]
|
| 136 |
temps = [entry["temperature"] for entry in weather_data]
|