Spaces:
abhi99555
/
Runtime error

abhi / sentiment_analysis.py
abhi99555's picture
Duplicate from peb-peb/shravan
d532a4d
from transformers import pipeline
def sentiment_analyser(text):
sent = pipeline("sentiment-analysis",model="siebert/sentiment-roberta-large-english")
return sent(text)