Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
aughhhhh
/
bored
like
0
Runtime error
App
Files
Files
Community
main
bored
/
app.py
aughhhhh
Create new file
ddcfeb7
almost 2 years ago
raw
history
blame
contribute
delete
No virus
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)