|
import streamlit as st |
|
from streamlit_option_menu import option_menu |
|
from views.home import home |
|
from views.analytics import analytics |
|
from views.ml import ml |
|
|
|
|
|
st.sidebar.image("img/logo.png", use_container_width=True) |
|
|
|
|
|
|
|
with st.sidebar: |
|
|
|
|
|
|
|
selected_tab = option_menu( |
|
menu_title=None, |
|
options=["Home", "Analytics", "Machine Learning"], |
|
icons=["house", "bar-chart", "robot"], |
|
menu_icon="cast", |
|
default_index=0, |
|
|
|
|
|
|
|
|
|
|
|
|
|
) |
|
|
|
if selected_tab == "Home": |
|
home() |
|
elif selected_tab == "Analytics": |
|
analytics() |
|
elif selected_tab == "Machine Learning": |
|
ml() |
|
|
|
|
|
st.markdown("---") |
|
col1, col2 = st.columns(2) |
|
|
|
with col1: |
|
st.markdown("### About") |
|
st.write("This dashboard is maintained by the M2 SISE team.") |
|
st.write("For more information, please visit the [GitHub repository](https://github.com/jdalfons/sise-ultimate-challenge/tree/main).") |
|
|
|
with col2: |
|
st.markdown("### Collaborators") |
|
st.write(""" |
|
- [Warrior 1](https://github.com/jdalfons) |
|
- [Warrior 2](https://github.com/jdalfons) |
|
- [Juan Alfonso](https://github.com/jdalfons) |
|
""") |