demo-app / app.py
tanvirrah001's picture
Create app.py
ceb9021
raw
history blame
177 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter some text')
if text:
out = pipe(txt)
st.json(out)