docker-test / app.py
DingShinn
update init
d84876f
raw
history blame contribute delete
251 Bytes
import streamlit as st
from transformers import pipeline
print(111)
pipe = pipeline("sentiment-analysis")
print(222)
text = st.text_area("enter some text")
print(333)
if text:
print(444)
out = pipe(text)
print(555)
st.json(out)
print(666)