Wisdom882's picture
Update app.py
140eb8d
raw
history blame
335 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
st.title("Sentiment Analysis")
st.write("""
# This demo shows the truthy or falsy values of text
""")
text = st.text_area('Enter some text in the box below!')
if text:
out = pipe(text)
st.json(out)