Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
F555
/
demo-app
like
0
Sleeping
App
Files
Files
Community
affbb3d
demo-app
/
app.py
F555
Create app.py
affbb3d
verified
2 months ago
raw
Copy download link
history
blame
Safe
183 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)