-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
38 lines (34 loc) · 977 Bytes
/
app.py
1
2
3
4
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
35
36
37
38
import streamlit as st
st.set_page_config(page_title = 'Padiku App', page_icon = "🌾", layout = "wide")
#----PAGE SETUP----
about_page = st.Page(
page = "pages/about_me.py",
title = "About Me",
icon = ":material/account_circle:",
default = True,
)
#----PAGE PROJECT-----
dashboard_page = st.Page(
page ='pages/dashboard.py',
title = "Dashboard",
icon = ":material/bar_chart:"
)
page_model = st.Page(
page = 'pages/predict.py',
title = "Prediksi Produksi Padi",
icon = ":material/smart_toy:"
)
#----NAVIGATION PAGE SETUP WITH SECTION-----
pg = st.navigation(
{
"Info": [about_page],
"Projects": [dashboard_page, page_model],
}
)
#----LOGO-------
#st.logo('images/')
st.sidebar.text(f'Created by Fendy Hendriyanto 👨🏼💻')
st.sidebar.info("Untuk codingnya, bisa ditemukan di my GitHub:")
st.sidebar.link_button("GitHub Source","https://github.com/fendy07/padiku")
#---- RUN NAVIGATION ------
pg.run()