Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,9 @@ def filter_map(min_availability, selected_day, selected_month, selected_hour,
|
|
38 |
|
39 |
# Predict availability using the updated model
|
40 |
df['availability'] = simple_model.predict(df[['station_id', 'month', 'day', 'hour',
|
41 |
-
|
|
|
|
|
42 |
|
43 |
# Filter stations based on availability
|
44 |
filtered_df = df[df['availability'] > min_availability].copy()
|
|
|
38 |
|
39 |
# Predict availability using the updated model
|
40 |
df['availability'] = simple_model.predict(df[['station_id', 'month', 'day', 'hour',
|
41 |
+
'ctx-4', 'ctx-3', 'ctx-2', 'ctx-1',
|
42 |
+
'temperature_2m (°C)', 'precipitation (mm)']])
|
43 |
+
|
44 |
|
45 |
# Filter stations based on availability
|
46 |
filtered_df = df[df['availability'] > min_availability].copy()
|