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( """