Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
peb-peb
/
shravan
like
2
Runtime error
App
Files
Files
Community
main
shravan
/
sentiment_analysis.py
peb-peb
add summary topic sentiment features
ca9e7bd
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
173 Bytes
from
transformers
import
pipeline
def
sentiment_analyser
(
text
):
sent = pipeline(
"sentiment-analysis"
,model=
"siebert/sentiment-roberta-large-english"
)
return
sent(text)