Spaces:
Runtime error
Runtime error
File size: 976 Bytes
2ede74d bdcb10c f436e74 2ede74d bdcb10c 68ecb1f 2ede74d 68ecb1f 2ede74d 68ecb1f 2ede74d bdcb10c 2ede74d |
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 |
import streamlit as st
from streamlit_option_menu import option_menu
import classifier
import home
import contact
st.write('Facial Emotions/Expressions Recognition Tool (using image upload)')
st.write('##### This page created by [Jeetendra Pagwani](https://huggingface.co/analytics-jiten)')
st.markdown('---')
selected = option_menu(None, ["Home", "Emotions Recognition","Contact"],
icons=['house', 'cloud-upload', 'envelope-at-fill'],
menu_icon="cast", default_index=0, orientation="horizontal",
styles={
"container": {"padding": "0!important", "background-color": "#fafafa"},
"icon": {"color": "orange", "font-size": "20px"},
"nav-link": {"font-size": "20px", "text-align": "left", "margin":"1px", "--hover-color": "#eee"},
"nav-link-selected": {"background-color": "green"},
}
)
selected
if selected == 'Emotions Recognition':
classifier.run()
elif selected == 'Home':
home.run()
else:
contact.run() |