Download src/app.py from BesottenJenny/Sentiment_Analysis_And_Topic_Modelling: direct link, hf CLI and curl.
- Browser
- Download file 953 Bytes
-
https://huggingface.co/spaces/BesottenJenny/Sentiment_Analysis_And_Topic_Modelling/resolve/main/src/app.py
- Command line
-
hf download hf://spaces/BesottenJenny/Sentiment_Analysis_And_Topic_Modelling/src/app.py
-
curl -L -o app.py https://huggingface.co/spaces/BesottenJenny/Sentiment_Analysis_And_Topic_Modelling/resolve/main/src/app.py
953 Bytes
| 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() | |