customer-predict / src /streamlit_app.py
fendy07's picture
Update .gitignore and modify project files
0822fa4
raw
history blame contribute delete
923 Bytes
import streamlit as st
st.set_page_config(page_title = 'Customer Prediction', page_icon = 'πŸ“ˆ', layout = 'wide')
# --- PAGE SETUP -----
info_page = st.Page(
page = 'pages/about.py',
title = 'Profile Developer',
icon = ':material/person:',
default= True
)
#---- PAGE PROJECT ------
dashboard = st.Page(
page = 'pages/dashboard.py',
title = 'Dashboard Customer Retail',
icon = ':material/bar_chart:',
)
#---- PAGE PREDICTION ------
prediction = st.Page(
page = 'pages/predict.py',
title = 'Customer Category Prediction',
icon = ':material/thumb_up:'
)
page = st.navigation(
{
"Info": [info_page],
"Projects": [dashboard, prediction],
}
)
st.sidebar.info("Source code, find in My Github:")
st.sidebar.link_button("Github Source", "https://github.com/fendy07/customer-prediction")
st.sidebar.text(f'Created by Fendy Hendriyanto πŸ‘¨πŸΌβ€πŸ’»')
page.run()