Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
typesdigital
/
demo
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
a43ba21
demo
/
app.py
typesdigital
Create app.py
a43ba21
verified
about 1 year ago
raw
Copy download link
history
blame
Safe
182 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)