Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
adrioui
/
exploration
like
0
Runtime error
App
Files
Files
Community
15538c6
exploration
/
app.py
adrioui
Update app.py
15538c6
almost 2 years ago
raw
Copy download link
history
blame
No virus
196 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)