Spaces:
Sleeping
Sleeping
adjoint-bass
commited on
Commit
•
227357c
1
Parent(s):
ba2ab2f
update app
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
import hopsworks
|
3 |
import joblib
|
4 |
import pandas as pd
|
5 |
-
|
6 |
from functions import get_weather_data_weekly, data_encoder, get_aplevel
|
7 |
from PIL import Image
|
8 |
|
@@ -50,7 +50,7 @@ preds = model.predict(data_encoder(weekly_data)).astype(int)
|
|
50 |
|
51 |
poll_level = get_aplevel(preds.T.reshape(-1, 1))
|
52 |
|
53 |
-
next_week_datetime = [today + timedelta(days=d) for d in range(7)]
|
54 |
|
55 |
next_week_str = [f"{days.strftime('%Y-%m-%d')}, {days.strftime('%A')}" for days in next_week_datetime]
|
56 |
|
|
|
2 |
import hopsworks
|
3 |
import joblib
|
4 |
import pandas as pd
|
5 |
+
import datetime
|
6 |
from functions import get_weather_data_weekly, data_encoder, get_aplevel
|
7 |
from PIL import Image
|
8 |
|
|
|
50 |
|
51 |
poll_level = get_aplevel(preds.T.reshape(-1, 1))
|
52 |
|
53 |
+
next_week_datetime = [today + datetime.timedelta(days=d) for d in range(7)]
|
54 |
|
55 |
next_week_str = [f"{days.strftime('%Y-%m-%d')}, {days.strftime('%A')}" for days in next_week_datetime]
|
56 |
|