import streamlit as st from transformers import pipeline x= pipeline('sentiment-analysis') text = st.text_area('enter text') if text: out=x(text) st.json(out)