Demo2 / app.py
ICEFROG96's picture
Create app.py
1230546 verified
Raw
History Blame Contribute Delete
168 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('Enter a text here!')
out = pipe(text)
st.json(out)