sentiment / app.py
ananthujay's picture
Create app.py
214013d
raw
history blame
196 Bytes
from transformers import pipeline
nlp = pipeline("sentiment-analysis")
def scoring(text):
results = nlp(text)
for result in results:
score = result['score']
return score