import streamlit as st from transformers import pipeline # Define the pipeline and assign it to `pipe` pipe = pipeline('sentiment-analysis') # Create a text area for input text = st.text_area('Enter Any Text That comes in Your Mind!!') # Process the text when the user inputs it if text: out = pipe(text) # Use the `pipe` variable here st.json(out) # Display the result as JSON