sujith13082003's picture
Update README.md
3124002 verified

A newer version of the Gradio SDK is available: 5.32.1

Upgrade
metadata
title: Emotion Detection App
emoji: 😊
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 4.27.0
app_file: app.py
pinned: false

😊 Emotion Detection from Text using BERT

Welcome to the Emotion Detection Web App! This application uses a fine-tuned BERT model to detect human emotions from short pieces of text.


πŸš€ Demo

πŸ‘‰ Try the live app: Click here to open the web app


πŸ” Description

This project leverages the nateraw/bert-base-uncased-emotion model from Hugging Face Transformers to classify input text into one of six emotions:

  • 😒 Sadness
  • πŸ˜€ Joy
  • πŸ’– Love
  • 😑 Anger
  • 😱 Fear
  • 😲 Surprise

It uses:

  • Hugging Face Transformers for model and tokenizer
  • PyTorch for deep learning inference
  • Gradio to build an interactive web interface

🧠 Model Used

  • Model Name: nateraw/bert-base-uncased-emotion
  • Base Architecture: BERT (uncased)
  • Dataset: GoEmotions subset

πŸ“¦ Dependencies

Dependencies are defined in requirements.txt:

  • transformers
  • torch
  • gradio

πŸ“ˆ Use Cases

  • Social media sentiment analysis
  • Customer feedback classification
  • Chatbot emotion understanding
  • Mental health applications

πŸ‘¨β€πŸ’» Author


πŸ“ License

This project is for educational and research purposes. Refer to individual library licenses for commercial use.