Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from streamlit_option_menu import option_menu | |
| import classifier | |
| import home | |
| import contact | |
| st.write('Vehicle number plate recognition') | |
| st.write('##### This page created by Himanshu Aggarwal') | |
| st.markdown('---') | |
| selected = option_menu(None, ["Home", "Number Plate 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 == 'Number Plate Recognition': | |
| classifier.run() | |
| elif selected == 'Home': | |
| home.run() | |
| else: | |
| contact.run() |