Spaces:
Runtime error
Runtime error
| import streamlit as st | |
| def run(): | |
| # Import pages inside function to avoid global loading issues | |
| from eda import run as eda_run | |
| from prediction_compile import run as prediction_run | |
| # Sidebar navigation | |
| page = st.sidebar.selectbox( | |
| 'Select Page:', | |
| ('Exploratory Data Analysis (EDA)', 'Prediction') | |
| ) | |
| # Show page | |
| if page == 'Exploratory Data Analysis (EDA)': | |
| eda_run() | |
| else: | |
| prediction_run() | |
| # Footer | |
| st.markdown( | |
| """ | |
| <div style="text-align: center; color: gray; font-size: 12px; margin-top: 50px;"> | |
| © 2025 Hana Antonio, Muhammad Revi Gilang Pradana, Zhaky B. Triaji. All rights reserved. <br> | |
| References: Dataset from <a href="https://www.kaggle.com" target="_blank" style="color: gray;">Kaggle</a> | |
| </div> | |
| """, | |
| unsafe_allow_html=True | |
| ) | |
| if __name__ == "__main__": | |
| run() | |