Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
LinhCT
/
ols
like
0
Sleeping
App
Files
Files
Community
9121d15
ols
/
app.py
LinhCT
Update app.py
9121d15
verified
5 months ago
raw
Copy download link
history
blame
Safe
208 Bytes
import
streamlit
as
st
pip install transformers
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text'
)
if
text:
out = pipe(text)
st.json(out)