demo-app / app.py
praneshp1org's picture
Update app.py
491ef5f verified
raw
history blame contribute delete
187 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter the text..')
if text:
out = pipeline(text)
st.json(out)