File size: 248 Bytes
a6bd4f6 0eae301 a6bd4f6 63d02c9 a6bd4f6 4954aa1 0eae301 f91fbfb |
1 2 3 4 5 6 7 8 9 10 11 12 |
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) |