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