Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
rxl7906
/
demo-app
like
0
Runtime error
App
Files
Files
Community
main
demo-app
/
app.py
rxl7906
Update app.py
ddd8502
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
184 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)