demo / app.py
Jingni's picture
Update app.py
63d02c9 verified
raw
history blame
248 Bytes
import streamlit as st
from transformers import pipeline
st.title("Predict Emotion of Social Media Post")
pipeline = pipeline("sentiment-analysis")
text = st.write("Enter a social media post here:")
if text:
out =pipe(text)
st.json(out)