import streamlit as st import pandas as pd import torch import transformers # Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base") st.write('Emotion Detection App') text = st.text_input("Enter Text") if st.button('Submit'): st.write("The current emotion is", pipe(text))