sec_demo / app.py
jamesliu23's picture
create app.py
9182652
raw
history blame
181 Bytes
from streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter some text')
if text:
out = pipe(text)
st.json(out)