Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
karthickn
/
sentiment-analysis-demo
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f01e43b
sentiment-analysis-demo
/
app.py
karthickn
Create app.py
f01e43b
over 1 year ago
raw
Copy download link
history
blame
Safe
216 Bytes
import
streamlit
as
st
from
transformers
import
pipline
sentiment_pipeline = pipeline(
"sentiment-analysis"
)
text = st.text_area(
'enter some text!'
)
if
text:
result = sentiment_pipeline(text)
st.json(result)