A simple AI-powered web app that detects emotions from text using a pretrained NLP model.
- User types any sentence
- App predicts the emotion (joy, sadness, anger, fear, surprise, disgust, neutral)
- Shows confidence score for each emotion
- Python
- Streamlit (UI)
- HuggingFace Transformers (NLP model)
- PyTorch
j-hartmann/emotion-english-distilroberta-base from HuggingFace
- Clone the repo
git clone https://github.com/yourusername/emotion-detector.git
cd emotion-detector
- Install dependencies
pip install -r requirements.txt
- Run the app
streamlit run app.py
- Open browser at http://localhost:8501