how to use

from transformers import pipeline, set_seed

path = "akahana/indonesia-emotion-roberta"
emotion = pipeline('text-classification', 
                     model=path,device=0)
set_seed(42)

kalimat = "dia orang yang baik ya bunds."
preds = emotion(kalimat)
preds

[{'label': 'BAHAGIA', 'score': 0.8790940046310425}]
Downloads last month
18
Safetensors
Model size
125M params
Tensor type
I64
·
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.