Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
aman-ht
/
demo-app
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
demo-app
/
app.py
aman-ht
modify the typo issue
2dee3ac
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
194 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
classifier = pipeline(
"sentiment-analysis"
)
text = st.text_area(
"Enter some text"
)
if
text:
out = classifier(text)
st.json(out)