Spaces:
Runtime error
Runtime error
Update pages/2_Energy Demand Forecasting.py
Browse files
pages/2_Energy Demand Forecasting.py
CHANGED
@@ -9,10 +9,24 @@ import numpy as np
|
|
9 |
import pandas as pd
|
10 |
from streamlit.components.v1 import html
|
11 |
from src.prediction import test_pred,val_pred
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
## Load model object
|
13 |
model_obj=Model_Load()
|
14 |
|
15 |
|
|
|
|
|
16 |
path='data/LD2011_2014.txt'
|
17 |
obj=Energy_DataLoader(path)
|
18 |
|
@@ -434,10 +448,4 @@ elif option=='Prophet':
|
|
434 |
"file.csv",
|
435 |
"text/csv",
|
436 |
key='download-csv')
|
437 |
-
|
438 |
-
<style>
|
439 |
-
#MainMenu {visibility: hidden;}
|
440 |
-
footer {visibility: hidden;}
|
441 |
-
</style>
|
442 |
-
"""
|
443 |
-
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
|
|
9 |
import pandas as pd
|
10 |
from streamlit.components.v1 import html
|
11 |
from src.prediction import test_pred,val_pred
|
12 |
+
|
13 |
+
# hide menubar and header
|
14 |
+
hide_streamlit_style = """
|
15 |
+
<style>
|
16 |
+
#MainMenu {visibility: hidden;}
|
17 |
+
footer {visibility: hidden;}
|
18 |
+
</style>
|
19 |
+
"""
|
20 |
+
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
## Load model object
|
25 |
model_obj=Model_Load()
|
26 |
|
27 |
|
28 |
+
|
29 |
+
|
30 |
path='data/LD2011_2014.txt'
|
31 |
obj=Energy_DataLoader(path)
|
32 |
|
|
|
448 |
"file.csv",
|
449 |
"text/csv",
|
450 |
key='download-csv')
|
451 |
+
|
|
|
|
|
|
|
|
|
|
|
|