File size: 1,416 Bytes
df80fb7
 
233adb5
 
8fd08e0
df80fb7
aaa3b8b
 
 
df80fb7
 
 
 
 
 
 
 
 
 
 
233adb5
 
df80fb7
 
 
 
 
 
 
 
 
 
8fd08e0
233adb5
 
 
 
8fd08e0
 
 
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
34
35
36
37
38
39
40
import streamlit as st
from streamlit_option_menu import option_menu
from views.studio import studio
from views.emotion_analysis import emotion_analysis
from views.about import about

if "model_loaded" not in st.session_state:
    st.session_state.model_loaded = None

# Set the logo
st.sidebar.image("img/logo.png", use_container_width=True)

# Create a sidebar with navigation options
# Sidebar navigation with streamlit-option-menu
with st.sidebar:
    # st.image("img/logo.png", use_container_width=True)
    # st.markdown("<h1 style='text-align: center;'>SecureIA Dashboard</h1>", unsafe_allow_html=True)
    # Navigation menu with icons
    selected_tab = option_menu(
        menu_title=None,  # Added menu_title parameter
        options=["Studio", "Emotion Analysis", "About"],
        icons=["record-circle", "robot", "info-circle"],
        menu_icon="cast",
        default_index=0,
        # styles={
        # "container": {"padding": "5px", "background-color": "#f0f2f6"},
        # "icon": {"color": "orange", "font-size": "18px"},
        # "nav-link": {"font-size": "16px", "text-align": "left", "margin": "0px", "color": "black"},
        # "nav-link-selected": {"background-color": "#4CAF50", "color": "white"},
        # }
    )
    
    
if selected_tab == "Studio":
    studio()
elif selected_tab == "Emotion Analysis":
    emotion_analysis()
elif selected_tab == "About":
    about()