import streamlit as slt from transformers import pipeline pipe = pipeline('sentiment-analysis') text = slt.text_area('Give me some text') if text: out = pipe(text) slt.json(out)