Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Rhayar
/
demo-app
like
0
Sleeping
App
Files
Files
Community
main
demo-app
/
app.py
Rhayar
Update app.py
745e602
about 1 year ago
raw
Copy download link
history
blame
contribute
delete
No virus
186 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)