demo-app / app.py
Girgis711's picture
create
143ab03
raw
history blame
182 Bytes
import streamlit as st
from transfomers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter some text:')
if text:
out = pipe(text)
st.json(out)