Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
quakumei
/
demo-app
like
0
Runtime error
App
Files
Files
Community
main
demo-app
/
app.py
quakumei
Update app.py
c6f5829
over 1 year 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)