Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
akuysal
/
demo-app-streamlit
like
1
Runtime error
App
Files
Files
Community
c415267
demo-app-streamlit
/
app.py
akuysal
Create app.py
42d70bf
almost 2 years ago
raw
Copy download link
history
blame
Safe
182 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)