Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
peb-peb/shravan
peb-peb
/
shravan_duplicate
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3788fdf
shravan_duplicate
/
sentiment_analysis.py
peb-peb
Duplicate from peb-peb/shravan
3788fdf
almost 2 years ago
raw
Copy download link
history
blame
Safe
173 Bytes
from
transformers
import
pipeline
def
sentiment_analyser
(
text
):
sent = pipeline(
"sentiment-analysis"
,model=
"siebert/sentiment-roberta-large-english"
)
return
sent(text)