tweet_eval / app.py
Jingni's picture
Update app.py
40e097c verified
raw
history blame contribute delete
280 Bytes
import streamlit as st
from transformers import pipeline
st.title("Predict Emotion of Social Media Post")
pipeline = pipeline("text-classification", "Jingni/transient_data" )
text = st.write("Enter a social media post:")
if text:
out =pipeline(text)
st.json(out)