Wisdom882's picture
Update app.py
fed4f06
raw
history blame
419 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
st.title("Sentiment Analysis")
st.markdown('This text is :red[colored red], and this is **:blue[colored]** and bold.')
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!')
if text:
out = pipe(text)
st.table(out)