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