Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
akuysal
/
demo-app-streamlit
like
1
Runtime error
App
Files
Files
Community
42d70bf
demo-app-streamlit
/
app.py
akuysal
Create app.py
42d70bf
over 1 year ago
raw
Copy download link
history
blame
No virus
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)