Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Aman30577
/
demo-app
like
0
Sleeping
App
Files
Files
Community
07c68a5
demo-app
/
app.js
Aman30577
init!
f69810f
over 1 year ago
raw
Copy download link
history
blame
Safe
179 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)