demo-app / app.py
aramya8989's picture
Update app.py
154342f verified
raw
history blame contribute delete
229 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('Enter some text')
submit = st.button("Get response")
if submit and text:
out = pipe(text)
st.json(out)