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
- Use HTTP Request Plugin or Blueprint to POST to the API URL.
- Include a header with Bearer token authorization.
- Send a JSON object like:
{"inputs": "Your text here"} - Parse the returned label and score.
- Downloads last month
- -