Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
lvidi
/
sada
like
0
Runtime error
App
Files
Files
Community
main
sada
/
app.py
lvidi
Update app.py
ec032b5
over 1 year ago
raw
history
blame
contribute
delete
No virus
178 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)