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