import streamlit as st from transformers import pipeline pipe=pipeline("sentiment-analysis") t=st.text_area("Enter the Text") summarizer = pipeline("summarization") t1=st.text_area("Enter the Text for Summarization") if t: st.write(pipe(t)) if t1: st.write(summarizer(t1))