Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
okaris
/
test
like
0
No application file
App
Files
Files
Community
2
Fetching metadata from the HF Docker repository...
refs/pr/2
test
/
app.py
sehun
sentiment text
036ef90
verified
8 months 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)