Spaces:
Sleeping
Sleeping
File size: 219 Bytes
af5df29 |
1 2 3 4 5 6 7 8 9 10 11 |
from transformers import pipeline
def init_emotions_model():
classifier = pipeline(
task="text-classification",
model="SamLowe/roberta-base-go_emotions",
top_k=None)
return classifier
|