Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
terran-ai
/
WOS-46985-BERT
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
97e4398
WOS-46985-BERT
/
app.py
terran-ai
Update app.py
97e4398
verified
about 1 year 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)