File size: 1,856 Bytes
57b215d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# import streamlit as st
# import eda
# import prediction_src

# ===============================
# SQ_streamlit_app.py
# ===============================

import streamlit as st

# ===============================
# Streamlit Config
# ===============================
st.set_page_config(
    page_title='ACRE - Automated Customer Review Analysis',
    layout='wide',
    initial_sidebar_state='expanded'
)
# st.markdown(
#     """
#     **ACRE** (Automated Customer Reviews Analysis) is a system designed to classify customer sentiment towards 
#     their flight experience with Singapore Airlines (SQ). It transforms raw customer feedback into structured insights, 
#     empowering management to make data-driven decisions and continuously enhance SQ’s reputation for service excellence.
#     """
# )

# Import custom pages (pastikan tidak ada st.* di global scope modul ini)
import eda
import prediction_compile

# ===============================
# Sidebar Navigation
# ===============================
page = st.sidebar.selectbox(
    'Select Page:',
    ('Exploratory Data Analysis (EDA)', 'Prediction')
)

# ===============================
# Page Content
# ===============================
# st.title("ACRE - Automated Customer Review Analysis")

if page == 'Exploratory Data Analysis (EDA)':
    eda.run()
else:
    prediction_compile.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
)