CsanadT commited on
Commit
12f7dc4
1 Parent(s): 388226f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -7,12 +7,10 @@ from datetime import timedelta, datetime
7
 
8
  from functions import *
9
 
10
-
11
  def fancy_header(text, font_size=24):
12
  res = f'<span style="color:#ff5f27; font-size: {font_size}px;">{text}</span>'
13
  st.markdown(res, unsafe_allow_html=True )
14
 
15
-
16
  st.title('Air Quality Prediction Project🌩')
17
 
18
  progress_bar = st.sidebar.header('Working Progress')
@@ -50,7 +48,7 @@ st.sidebar.write("-" * 36)
50
  preds = model.predict(data_encoder(weekly_data)).astype(int)
51
  poll_level = get_aplevel(preds.T.reshape(-1, 1))
52
 
53
- next_week = [(datetime.today() + timedelta(days=d)).strftime('%A') for d in range(1, 7)]
54
 
55
  df = pd.DataFrame(data=preds, index=["eg"], columns=[f"AQI Predictions for {next_day}" for next_day in next_week], dtype=int)
56
 
 
7
 
8
  from functions import *
9
 
 
10
  def fancy_header(text, font_size=24):
11
  res = f'<span style="color:#ff5f27; font-size: {font_size}px;">{text}</span>'
12
  st.markdown(res, unsafe_allow_html=True )
13
 
 
14
  st.title('Air Quality Prediction Project🌩')
15
 
16
  progress_bar = st.sidebar.header('Working Progress')
 
48
  preds = model.predict(data_encoder(weekly_data)).astype(int)
49
  poll_level = get_aplevel(preds.T.reshape(-1, 1))
50
 
51
+ next_week = [(today + timedelta(days=d)).strftime('%A') for d in range(1, 7)]
52
 
53
  df = pd.DataFrame(data=preds, index=["eg"], columns=[f"AQI Predictions for {next_day}" for next_day in next_week], dtype=int)
54