Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
richardxgf
/
demo2
like
0
Sleeping
App
Files
Files
Community
0cbe239
demo2
/
app.py
rxsalad
init
0cbe239
5 months ago
raw
Copy download link
history
blame
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)