analytics-jiten commited on
Commit
2ede74d
·
1 Parent(s): dafda69

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -0
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('### Mechanical Parts Classifier')
9
+ st.write('##### This page created by [Abi Sugiri](https://github.com/abisugiri)')
10
+ st.markdown('---')
11
+
12
+
13
+ selected = option_menu(None, ["Home", "Classifier","Contact"],
14
+ icons=['house', 'gear-fill', 'envelope-at-fill'],
15
+ menu_icon="cast", default_index=0, orientation="vertical",
16
+ styles={
17
+ "icon": {"color": "yellow", "font-size": "20px"},
18
+ "nav-link": {"font-size": "20px", "text-align": "left", "margin":"1px", "--hover-color": "#eee"},
19
+ "nav-link-selected": {"background-color": "grey"},
20
+ }
21
+ )
22
+
23
+ selected
24
+
25
+
26
+ if selected == 'Classifier':
27
+ classifier.run()
28
+
29
+ elif selected == 'Home':
30
+ home.run()
31
+ else:
32
+ contact.run()