This project is an implementation of emotion detection in Python using a pre-trained model (bhadresh-savani/distilbert-base-uncased-emotion
) from Hugging Face's transformers
library. The program takes an input text and returns emotion scores for various emotions like joy, sadness, anger, etc.
Before running this project, make sure you have the following installed:
- Python 3.x
pip
(Python package installer)transformers
andtorch
libraries
If you're starting from scratch, create a folder for your project and open it in VS Code.
mkdir emotion-detection
cd emotion-detection
code .