Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Alex-Song
/
Test_Pipeline
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
bccaa33
Test_Pipeline
/
app.py
Alex-Song
Create app.py
bccaa33
over 1 year ago
raw
Copy download link
history
blame
Safe
185 Bytes
import
streamlit
as
st
import
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter your text!'
)
if
text:
out = pipe(text)
st.json(out)