Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
sifujohn
/
SentimentBuddy
like
0
Sleeping
App
Files
Files
Community
fca5d9b
SentimentBuddy
/
app.py
sifujohn
Update app.py
fca5d9b
verified
9 months ago
raw
Copy download link
history
blame
Safe
186 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'Enter given text'
)
if
text:
out = pipe(text)
st.json(out)