Skip to content

Repository files navigation

Emotion Detection

This project trains a Logistic Regression classifier to detect emotions in text and provides a simple web demo using Streamlit.

Usage

  1. Install the requirements:

    pip install -r requirements.txt
  2. Download the spaCy language model (required before running train_model.py or the Streamlit demo):

    python -m spacy download en_core_web_sm
  3. Train the model (this creates best_model.pkl):

    python train_model.py

    model.predict() will raise an error if this file is missing, so be sure to run the training script before using the app or the library functions.

  4. Run the demo app:

    streamlit run app.py

The training data is provided in text_emotions.csv.

Demo : https://xploit-emotion-detection.streamlit.app

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages