social-stat / models.py
molokhovdmitry's picture
Add emotions model
af5df29
raw
history blame
No virus
219 Bytes
from transformers import pipeline
def init_emotions_model():
classifier = pipeline(
task="text-classification",
model="SamLowe/roberta-base-go_emotions",
top_k=None)
return classifier