Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Nuthanon
/
test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ffb2a68
test
/
app.py
Nuthanon
Update app.py
aaa71ca
verified
8 months ago
raw
Copy download link
history
blame
Safe
217 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
st.title(
"Test"
)
test_pipeline = pipeline(
"sentiment-analysis"
)
text = st.text_area(
"Enter some text"
)
if
text:
out = test_pipeline(text)
st.json(out)