Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
SAMBOOM
/
Space2
like
0
Sleeping
App
Files
Files
Community
6556621
Space2
/
app.py
SAMBOOM
Create app.py
6556621
verified
6 months ago
raw
Copy download link
history
blame
No virus
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)