Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
timothynn
/
demo-space
like
1
Sleeping
App
Files
Files
Community
8bace6c
demo-space
/
app.py
timothynn
Update app.py
2a2a0de
over 1 year ago
raw
Copy download link
history
blame
Safe
187 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)