Donlapark's picture
Update app.py
4d51e1a
raw
history blame
229 Bytes
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english")
text = st.text_area('enter some text:')
if text:
results = classifier([text])
st.json(out)