forked from Cedric979/BEEV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.py
35 lines (29 loc) · 844 Bytes
/
application.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from Libraries import *
import Interface_docker
import Interface2_docker
#Changing the background with an image that has to be in the same folder
import base64
main_bg = './app/Background.png'
main_bg_ext = "png"
st.markdown(
f"""
<style>
.reportview-container {{
background: url(data:image/{main_bg_ext};base64,{base64.b64encode(open(main_bg, "rb").read()).decode()});
background-size: 100% 100%
}}
</style>
""",
unsafe_allow_html=True
)
### start streamlit
# image = Image.open('./app/BEEV_image.png')
# st.image(image)
PAGES = {
"GEV car selection": Interface2_docker,
"Manual features selection": Interface_docker
}
st.sidebar.title('How would you like to select your features ?')
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
page = PAGES[selection]
page.app()