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