Spaces:
Sleeping
Sleeping
Commit ·
e75d47f
1
Parent(s): 6e8b48e
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''
|
| 2 |
+
Phase 2 Graded Challenge 1
|
| 3 |
+
|
| 4 |
+
Nama : Achmad Dhani
|
| 5 |
+
|
| 6 |
+
Batch : HCK-009
|
| 7 |
+
|
| 8 |
+
Objective : Creating a main page of the webapps.
|
| 9 |
+
'''
|
| 10 |
+
|
| 11 |
+
import streamlit as st
|
| 12 |
+
#import eda
|
| 13 |
+
#import model
|
| 14 |
+
|
| 15 |
+
# navigating pages
|
| 16 |
+
page = st.sidebar.selectbox(label='Select Page:', options=['Home Page', 'Exploration Data Analysis', 'Emotion Classification Model'])
|
| 17 |
+
|
| 18 |
+
if page == 'Home Page':
|
| 19 |
+
st.header('Home Page')
|
| 20 |
+
st.write('')
|
| 21 |
+
st.write('Phase 1 Milestone 2')
|
| 22 |
+
st.write('Name : Achmad Dhani')
|
| 23 |
+
st.write('Batch : HCK-009')
|
| 24 |
+
st.markdown('Dataset: [Emotion Dataset](https://www.kaggle.com/datasets/abdallahwagih/emotion-dataset)')
|
| 25 |
+
st.write('Objective :')
|
| 26 |
+
st.write('')
|
| 27 |
+
st.caption('Please pick the options in the Select Page Box located on the left of the screen to start!')
|
| 28 |
+
st.write('')
|
| 29 |
+
st.write('')
|
| 30 |
+
|
| 31 |
+
#============================= Background Info ==========================
|
| 32 |
+
|
| 33 |
+
with st.expander("Background Information"):
|
| 34 |
+
st.caption('')
|
| 35 |
+
|
| 36 |
+
#============================= Work Flow ================================
|
| 37 |
+
|
| 38 |
+
with st.expander("Work Flow"):
|
| 39 |
+
st.caption(
|
| 40 |
+
'''
|
| 41 |
+
'''
|
| 42 |
+
)
|
| 43 |
+
|
| 44 |
+
#============================= Conclussion =================================
|
| 45 |
+
with st.expander("Conclusion"): # conclusion
|
| 46 |
+
st.caption(
|
| 47 |
+
'''
|
| 48 |
+
'''
|
| 49 |
+
)
|
| 50 |
+
|
| 51 |
+
#============================ Other Page ======================================
|
| 52 |
+
elif page == 'Exploration Data Analysis':
|
| 53 |
+
eda.run()
|
| 54 |
+
else:
|
| 55 |
+
model.run()
|