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