Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
kdevoe
/
testspace
like
0
Sleeping
App
Files
Files
Community
79ac4af
testspace
/
app.py
kdevoe
Create app.py
c99aec6
11 months ago
raw
Copy download link
history
blame
Safe
184 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)