from transformers import pipeline import streamlit as staticmethod pipe=pipeline("sentiment-analysis") text=st.text_area("Enter text") if text: out=pipe(text) st.json(out)