Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from streamlit_option_menu import option_menu
|
| 3 |
+
import classifier
|
| 4 |
+
import home
|
| 5 |
+
import contact
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
st.write('Vehicle number plate recognition')
|
| 9 |
+
st.write('##### This page created by Himanshu Aggarwal')
|
| 10 |
+
st.markdown('---')
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
selected = option_menu(None, ["Home", "Number Plate Recognition","Contact"],
|
| 14 |
+
icons=['house', 'cloud-upload', 'envelope-at-fill'],
|
| 15 |
+
menu_icon="cast", default_index=0, orientation="horizontal",
|
| 16 |
+
styles={
|
| 17 |
+
"container": {"padding": "0!important", "background-color": "#fafafa"},
|
| 18 |
+
"icon": {"color": "orange", "font-size": "20px"},
|
| 19 |
+
"nav-link": {"font-size": "20px", "text-align": "left", "margin":"1px", "--hover-color": "#eee"},
|
| 20 |
+
"nav-link-selected": {"background-color": "green"},
|
| 21 |
+
}
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
selected
|
| 25 |
+
|
| 26 |
+
if selected == 'Number Plate Recognition':
|
| 27 |
+
classifier.run()
|
| 28 |
+
|
| 29 |
+
elif selected == 'Home':
|
| 30 |
+
home.run()
|
| 31 |
+
else:
|
| 32 |
+
contact.run()
|