File size: 185 Bytes
c1a4dbd
 
0ab31d3
c39cc72
 
 
1
2
3
4
5
6
from transformers import pipeline

classifier = pipeline("sentiment-analysis") #, model="stevhliu/my_awesome_model")
def acf(text1):
    acfresult=classifier(text1)
    return acfresult