Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
pm6six
/
demo-app
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
demo-app
/
app.py
pm6six
Create app.py
31b3b39
verified
2 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
181 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)