Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ st.sidebar.write("-" * 36)
|
|
51 |
preds = model.predict(data_encoder(weekly_data)).astype(int)
|
52 |
poll_level = get_aplevel(preds.T.reshape(-1, 1))
|
53 |
|
54 |
-
next_week = [[(today + timedelta(days=d)).strftime('%Y-%m-%d'),(today + timedelta(days=d)).strftime('%A')] for d in range(
|
55 |
|
56 |
df = pd.DataFrame(data=[preds, poll_level], index=["AQI", "Air pollution level"], columns=[f"AQI Predictions for {next_day}" for next_day in next_week])
|
57 |
|
|
|
51 |
preds = model.predict(data_encoder(weekly_data)).astype(int)
|
52 |
poll_level = get_aplevel(preds.T.reshape(-1, 1))
|
53 |
|
54 |
+
next_week = [[(today + timedelta(days=d)).strftime('%Y-%m-%d'), (today + timedelta(days=d)).strftime('%A')] for d in range(7)]
|
55 |
|
56 |
df = pd.DataFrame(data=[preds, poll_level], index=["AQI", "Air pollution level"], columns=[f"AQI Predictions for {next_day}" for next_day in next_week])
|
57 |
|