Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
jo0119
/
snowman
like
0
Runtime error
App
Files
Files
Community
32b05f3
snowman
/
app.py
jo0119
Update app.py
32b05f3
over 1 year ago
raw
Copy download link
history
blame
Safe
184 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text!'
)
if
text:
out = pipe(text)
st.json(out)