demo.app / app.py
Surish's picture
Create app.py
cf5247e
Raw
History Blame Contribute Delete
197 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area("단어를 입력해보세요. ")
if text:
out = pipe(text)
st.json(out)