File size: 796 Bytes
d574e4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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()