Spaces:
Runtime error
Runtime error
Download app.py from faizanmumtaz/themeclassification: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/spaces/faizanmumtaz/themeclassification/resolve/main/app.py
- Command line
-
hf download hf://spaces/faizanmumtaz/themeclassification/app.py
-
curl -L -o app.py https://huggingface.co/spaces/faizanmumtaz/themeclassification/resolve/main/app.py
552 Bytes
| import streamlit as st | |
| import pandas as pd | |
| from main import _main | |
| st.set_page_config(page_title="Reviews Sentiment Analyzer",page_icon="๐") | |
| uploaded_file = st.file_uploader("Choose a CSV file; it must have a column with the name 'reviews'", type=["csv"]) | |
| if uploaded_file is not None: | |
| df = pd.read_csv(uploaded_file) | |
| st.info("Only 20 rows will be analyzed in reviews column.") | |
| st.write('Original Data:', df) | |
| if st.button('Analyze Reviews Sentiment!'): | |
| with st.spinner("Please wait..."): | |
| _main(df) |