Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
iKyalo
/
demo-app
like
0
Sleeping
App
Files
Files
Community
main
demo-app
/
app.py
iKyalo
Update app.py
5d10f59
verified
7 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
183 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)