A newer version of the Gradio SDK is available:
6.2.0
metadata
title: Emotion Classifier
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.0
app_file: app.py
pinned: false
license: mit
short_description: Emotion classifier by DistilBERT.
Emotion Classification App
This is a Gradio web app for classifying emotions in text using the S-4-G-4-R/distilbert-base-uncased-finetuned-emotion model.
Features
- π Analyze text for emotional content
- π Interactive visualization of emotion probabilities
- π‘ Example texts to try
- π¨ User-friendly interface
Model
The app uses a fine-tuned DistilBERT model specifically trained for emotion classification.
Usage
Simply enter any text and click "Classify Emotion" to see the emotional analysis with probability scores for different emotions.
Examples
Try these sample texts:
- "I was feeling very alone today walking down on road"
- "I am so happy and excited about this new opportunity!"
- "This makes me really angry and frustrated."
Built with Gradio and Transformers π€