elisaklunder commited on
Commit
5c952a2
·
1 Parent(s): b11254e

cached resources

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import plotly.graph_objects as go
4
  import streamlit as st
5
 
6
  from src.helper_functions import custom_metric_box, pollution_box
7
- from src.predict import get_data_and_predictions
8
 
9
  st.set_page_config(
10
  page_title="Utrecht Pollution Dashboard",
@@ -16,7 +16,8 @@ st.set_page_config(
16
  alt.themes.enable("dark")
17
 
18
  model_NO2, model_O3 = load_models()
19
- week_data, predictions_O3, predictions_NO2 = get_data_and_predictions()
 
20
  today = week_data.iloc[-1]
21
  previous_day = week_data.iloc[-2]
22
 
 
4
  import streamlit as st
5
 
6
  from src.helper_functions import custom_metric_box, pollution_box
7
+ from src.predict import get_data_and_predictions, load_models
8
 
9
  st.set_page_config(
10
  page_title="Utrecht Pollution Dashboard",
 
16
  alt.themes.enable("dark")
17
 
18
  model_NO2, model_O3 = load_models()
19
+ week_data, predictions_O3, predictions_NO2 = get_data_and_predictions(model_NO2, model_O3)
20
+
21
  today = week_data.iloc[-1]
22
  previous_day = week_data.iloc[-2]
23