Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Alex-Song
/
Test_Pipeline
like
0
Runtime error
App
Files
Files
Community
4428abe
Test_Pipeline
/
app.py
Alex-Song
Update app.py
4428abe
12 months ago
raw
Copy download link
history
blame
Safe
183 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter your text!'
)
if
text:
out = pipe(text)
st.json(out)