from transformers import pipeline import streamlit as st pipe = pipeline('sentiment analysis') input_text = st.text_input('Enter some text') if input_text: st.json(pipe(input_text))