Demo / app.py
rheremans's picture
Create app.py
dc2acdb verified
raw
history blame
196 Bytes
import streamlit as staticmethodfrom transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('Enter some text here:')
if text:
out = pipe(text)
st.join(out)