import streamlit as st import pandas as pd from eda import run_eda_app from prediction import run_prediction_app import matplotlib.pyplot as plt # Load the dataset data = pd.read_csv('online_shoppers_intention.csv') # Main app def main(): st.title('Online Shoppers Intention Prediction App') # Sidebar for navigation menu = ['Home', 'EDA', 'Prediction'] choice = st.sidebar.selectbox('Menu', menu) if choice == 'Home': st.write('Welcome to the Online Shoppers Intention Prediction App!') st.write('Navigate to the EDA or Prediction sections using the sidebar to explore further.') elif choice == 'EDA': run_eda_app(data) elif choice == 'Prediction': run_prediction_app() if __name__ == '__main__': main()