Wisdom882's picture
Update app.py
1697ee9
raw
history blame
455 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
st.title("Sentiment Analysis")
st.markdown(":green[$\sqrt{x^2+y^2}=1$] is a Pythagorean identity. :pencil:")
st.write("""##### This demo identifies the emotional tone behind a body of text. :sunglasses:""")
text = st.text_area('Enter some text in the box below!')
result = st.button("or click here")
if text or result:
out = pipe(text)
st.table(out)