selvaganesh19/Emotion-Detection-in-Text-Hugging-Face

🌍 Multilingual Sentiment Analysis

5

stars

16

commits

HTML

primary language

Oct 24, 2025

updated

textemotion.vercel.app/

README

Emotion-Detection-in-Text 😃 🥺 😔

📖 Introduction

Emotion-Detection-in-Text-Hugging-Face is a robust, multilingual sentiment analysis tool powered by Hugging Face Transformers and Gradio. This project enables users to detect emotions in text from various languages by leveraging automatic translation and state-of-the-art NLP models. Whether you want to analyze tweets, comments, or any text data, this project provides an easy-to-use interface and accurate sentiment predictions.


🚀 Live Demo

Check out the Hugging Face Space:

Hugging Face Space

Vercel Deployment:

Vercel Deployment


✨ Features

  • 🌐 Multilingual Support: Analyze text from multiple languages using automatic translation.
  • 🤖 State-of-the-art Model: Utilizes the cardiffnlp/twitter-roberta-base-sentiment model for reliable sentiment analysis.
  • ⚡ Fast & Interactive: Gradio-powered web interface for quick and user-friendly predictions.
  • 🔌 Easy Integration: Simple Python script for straightforward deployment and customization.
  • 🔍 Language Detection: Automatically detects the input language for seamless processing.

🛠️ Installation

  1. Clone the Repository:

    git clone https://github.com/selvaganesh19/Emotion-Detection-in-Text-Hugging-Face.git
    cd Emotion-Detection-in-Text-Hugging-Face
    
  2. Create a Virtual Environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
    
  3. Install Dependencies:

    pip install -r requirements.txt
    

    If you don't have a requirements.txt, install directly:

    pip install gradio transformers deep-translator langdetect torch
    

🚀 Usage

  1. Start the Gradio App:

    python app.py
    
  2. Access the Web Interface:

    • Open your browser and go to the local Gradio link displayed in the terminal (e.g., http://localhost:7860).
    • Enter any text in any supported language.
    • View the predicted sentiment: Positive, Negative, or Neutral.

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -am 'Add cool feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.

Please see CONTRIBUTING.md for more details.


📄 License

This project is licensed under the MIT License.


Developed with ❤️ using Hugging Face Transformers and Gradio.


Files included:

  • app.py - Main application script for sentiment analysis.

Keywords: NLP, Sentiment Analysis, Multilingual, Hugging Face, Gradio, Emotion Detection, Transformers


Feel free to open issues for suggestions or bug reports! 🚀

License

This project is licensed under the MIT License.


🔗 GitHub Repo: https://github.com/selvaganesh19/Emotion-Detection-in-Text-Hugging-Face

Contributors

selvaganesh19

16 commits

selvaganesh19/Emotion-Detection-in-Text-Hugging-Face

🌍 Multilingual Sentiment Analysis

5

stars

16

commits

HTML

primary language

Oct 24, 2025

updated

textemotion.vercel.app/

README

Emotion-Detection-in-Text 😃 🥺 😔

📖 Introduction

Emotion-Detection-in-Text-Hugging-Face is a robust, multilingual sentiment analysis tool powered by Hugging Face Transformers and Gradio. This project enables users to detect emotions in text from various languages by leveraging automatic translation and state-of-the-art NLP models. Whether you want to analyze tweets, comments, or any text data, this project provides an easy-to-use interface and accurate sentiment predictions.


🚀 Live Demo

Check out the Hugging Face Space:

Hugging Face Space

Vercel Deployment:

Vercel Deployment


✨ Features

  • 🌐 Multilingual Support: Analyze text from multiple languages using automatic translation.
  • 🤖 State-of-the-art Model: Utilizes the cardiffnlp/twitter-roberta-base-sentiment model for reliable sentiment analysis.
  • ⚡ Fast & Interactive: Gradio-powered web interface for quick and user-friendly predictions.
  • 🔌 Easy Integration: Simple Python script for straightforward deployment and customization.
  • 🔍 Language Detection: Automatically detects the input language for seamless processing.

🛠️ Installation

  1. Clone the Repository:

    git clone https://github.com/selvaganesh19/Emotion-Detection-in-Text-Hugging-Face.git
    cd Emotion-Detection-in-Text-Hugging-Face
    
  2. Create a Virtual Environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
    
  3. Install Dependencies:

    pip install -r requirements.txt
    

    If you don't have a requirements.txt, install directly:

    pip install gradio transformers deep-translator langdetect torch
    

🚀 Usage

  1. Start the Gradio App:

    python app.py
    
  2. Access the Web Interface:

    • Open your browser and go to the local Gradio link displayed in the terminal (e.g., http://localhost:7860).
    • Enter any text in any supported language.
    • View the predicted sentiment: Positive, Negative, or Neutral.

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -am 'Add cool feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.

Please see CONTRIBUTING.md for more details.


📄 License

This project is licensed under the MIT License.


Developed with ❤️ using Hugging Face Transformers and Gradio.


Files included:

  • app.py - Main application script for sentiment analysis.

Keywords: NLP, Sentiment Analysis, Multilingual, Hugging Face, Gradio, Emotion Detection, Transformers


Feel free to open issues for suggestions or bug reports! 🚀

License

This project is licensed under the MIT License.


🔗 GitHub Repo: https://github.com/selvaganesh19/Emotion-Detection-in-Text-Hugging-Face

Contributors

selvaganesh19

16 commits

Languages

HTML

73.8%

JavaScript

14.9%

Python

11.3%