import streamlit as st from transformers import pipeline pipe = pipeline("sentiment-analysis") st.write( "---------------------------") st.write( "--------------------------- demo2: Sentiment Analysis") text = st.text_area("Please enter some text") if text: out = pipe(text) st.json(out)