Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Uchenna
/
Sentiment-Classifier
like
0
Runtime error
App
Files
Files
Community
49efcaf
Sentiment-Classifier
/
app.py
Uchenna
Create app.py
49efcaf
over 1 year ago
raw
Copy download link
history
blame
Safe
180 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipleline(
"sentiment-analysis"
)
text = text_area(
"Enter some text"
)
if
text:
out = pipe(text)
st.json(out)