demo-app / app.py
Gebremichael's picture
Update app.py
d25d22e
raw
history blame
176 Bytes
import streamlit as str
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter some text!')
if text:
out = pipe(text)
st.json(out)