Spaces:
Configuration error
Configuration error
import streamlit as st | |
from transformers import pipeline | |
st.title("Social Media Posts Emotion") | |
pipeline = pipeline("text-classification","Jingni/transient_data") | |
pipeline_2 = pipeline("text-classification", "Jingni/tweet_eval") | |
text = st.write("Enter a social media post to analyze its emotion:") | |
if text: | |
out =pipe(text) | |
st.json(out) | |
if text: | |
out2= pipe_2(text) | |
st.json(out2) |