| 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) |
| 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) |