ML & Data · 2026
Sentiment Analysis Dashboard
Hugging Face Transformer sentiment analysis with real-time, CSV batch and demo modes.
Model
- Pretrained Hugging Face sentiment transformer (DistilBERT-class SST-2 model)
- No fine-tuning — inference only, with confidence thresholds
- Three modes: single text, CSV batch upload, curated demo
Dataset
User-provided text and CSV uploads scored at runtime; no training data.
Results & metrics
- Base model acc.
- ~0.91 (SST-2)
- Modes
- real-time · CSV batch · demo
- Output
- label + confidence
Deployment steps
- 1Load the transformer once and cache it
- 2Wire the three input modes into one scoring path
- 3Aggregate batch results into charts
- 4Deploy to Streamlit Cloud
Tech stack
- Hugging Face
- Transformers
- Streamlit