Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
SAMBOOM
/
Space2
like
0
Sleeping
App
Files
Files
Community
f25914e
Space2
/
app.py
SAMBOOM
Create app.py
6556621
verified
9 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)