Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Ensheng
/
test-demo
like
0
Runtime error
App
Files
Files
Community
e8250c5
test-demo
/
app.py
Ensheng
Create app.py
e8250c5
over 1 year ago
raw
Copy download link
history
blame
Safe
178 Bytes
import
streamlit
as
st
from
transformer
import
pipeline
pip = pipeline(
"sentiment-analysis"
)
text=st.text_area(
"enter some text"
)
if
text:
out = pipe(text)
st.json(out)