Test_Pipeline / app.py
Alex-Song's picture
Create app.py
bccaa33
raw
history blame
No virus
185 Bytes
import streamlit as st
import transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter your text!')
if text:
out = pipe(text)
st.json(out)