Here’s the revised README for the Mood Parser project on Hugging Face, using the correct repo name RummyAx/Mood-Parser:
# Mood Parser AI: Moodly
**Moodly** is an AI-powered Mood Parser that detects emotions in text using a fine-tuned transformer-based model, such as BERT or RoBERTa. Deployed on Hugging Face, it offers real-time mood analysis and emotion classification across multiple languages.
## Demo
You can try **Moodly** directly on Hugging Face:
[Try Moodly](https://huggingface.co/spaces/RummyAx/Mood-Parser)
## How it Works
Moodly detects a variety of emotions from text input. The model is trained on sentiment and emotion classification tasks to provide accurate results. It supports multiple languages for global usage.
### Supported Emotions
- Happiness
- Sadness
- Anger
- Fear
- Surprise
- Disgust
## Example
### Input:
```text
I am feeling really happy today!
Output:
{
"emotion": "happiness",
"confidence": 0.97
}
API Usage
You can integrate the model into your applications using Hugging Face's API.
API Endpoint
- URL:
https://api-inference.huggingface.co/models/RummyAx/Mood-Parser - Method: POST
- Body: Send a POST request with the input text.
Example API Request:
curl -X POST "https://api-inference.huggingface.co/models/RummyAx/Mood-Parser" \
-H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inputs": "I am feeling very sad!"}'
Example API Response:
{
"emotion": "sadness",
"confidence": 0.95
}
Installation (Local)
To run Moodly locally, follow these steps:
Clone the repository:
git clone https://github.com/RummyAx/Mood-Parser.gitInstall required libraries:
pip install -r requirements.txtRun the model:
python app.py
This will allow you to use the model on your local machine.
Contributing
We welcome contributions to this project! To contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature-branch) - Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Hugging Face for providing the platform and hosting the model.
- The authors of BERT and RoBERTa for their powerful transformer models.
- The open-source community for their contributions to NLP.
This updated README reflects the correct repository name `RummyAx/Mood-Parser` and includes links and API usage instructions for your Hugging Face project. Make sure to replace the `YOUR_HUGGINGFACE_API_KEY` placeholder with your actual Hugging Face API key.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support