analytics-jiten's picture
Update app.py
f436e74
raw
history blame
868 Bytes
import streamlit as st
from streamlit_option_menu import option_menu
import classifier
import home
import contact
st.write('Facial Emotions/Expressions Detection Tool (using image upload)')
st.write('##### This page created by [Jeetendra Pagwani](https://huggingface.co/analytics-jiten)')
st.markdown('---')
selected = option_menu(None, ["Home", "Classifier","Contact"],
icons=['house', 'gear-fill', 'envelope-at-fill'],
menu_icon="cast", default_index=0, orientation="vertical",
styles={
"icon": {"color": "yellow", "font-size": "20px"},
"nav-link": {"font-size": "20px", "text-align": "left", "margin":"1px", "--hover-color": "#eee"},
"nav-link-selected": {"background-color": "grey"},
}
)
selected
if selected == 'Classifier':
classifier.run()
elif selected == 'Home':
home.run()
else:
contact.run()