Emotion Classifier (MELD)

This model classifies text input into emotional categories, trained on MELD.

API Usage

import requests

API_URL = "https://api-inference.huggingface.co/models/Nn-n/emotion-classifier-meld"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()

output = query({"inputs": "I'm feeling excited!"})
print(output)

Unreal Engine Usage

  1. Use HTTP Request Plugin or Blueprint to POST to the API URL.
  2. Include a header with Bearer token authorization.
  3. Send a JSON object like: {"inputs": "Your text here"}
  4. Parse the returned label and score.
Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support