Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +29 -39
src/streamlit_app.py
CHANGED
|
@@ -1,40 +1,30 @@
|
|
| 1 |
-
import altair as alt
|
| 2 |
-
import numpy as np
|
| 3 |
-
import pandas as pd
|
| 4 |
import streamlit as st
|
| 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 |
-
|
| 33 |
-
|
| 34 |
-
.mark_point(filled=True)
|
| 35 |
-
.encode(
|
| 36 |
-
x=alt.X("x", axis=None),
|
| 37 |
-
y=alt.Y("y", axis=None),
|
| 38 |
-
color=alt.Color("idx", legend=None, scale=alt.Scale()),
|
| 39 |
-
size=alt.Size("rand", legend=None, scale=alt.Scale(range=[1, 150])),
|
| 40 |
-
))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import eda
|
| 3 |
+
import models
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
page = st.sidebar.selectbox(label='Select Page:', options=['Home Page', 'Exploration Data Analysis', 'Model Prediksi'])
|
| 7 |
+
|
| 8 |
+
if page == 'Home Page':
|
| 9 |
+
st.header('Welcome Page')
|
| 10 |
+
st.write('')
|
| 11 |
+
st.write('Milestone 2')
|
| 12 |
+
st.write('Nama : M. Rachman')
|
| 13 |
+
st.write('Batch : ')
|
| 14 |
+
st.write('Tujuan Milestone : ')
|
| 15 |
+
st.write('')
|
| 16 |
+
st.caption('Silahkan pilih menu lain di Select Box pada sebelah kiri layar anda untuk memulai!')
|
| 17 |
+
st.write('')
|
| 18 |
+
st.write('')
|
| 19 |
+
with st.expander("Latar Belakang"):
|
| 20 |
+
st.caption('lorem ipsum')
|
| 21 |
+
|
| 22 |
+
with st.expander("Problem Statement"):
|
| 23 |
+
st.caption('lorem ipsum')
|
| 24 |
+
|
| 25 |
+
with st.expander("Kesimpulan"):
|
| 26 |
+
st.caption('lorem ipsum')
|
| 27 |
+
elif page == 'Exploration Data Analysis':
|
| 28 |
+
eda.run()
|
| 29 |
+
else:
|
| 30 |
+
models.run()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|