Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
rheremans
/
BramVanroy
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
23b484e
BramVanroy
/
app.py
rheremans
Update app.py
207e868
verified
12 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)