import streamlit as st from transformers import pipeline summarizer = pipeline("summarization") # pipe=pipeline("sentiment-analysis") # col1, col2 = st.columns(2) # with col1: # x=st.button("Sentiment Analysis") # with col2: # y=st.button("Text Summarization") # if x: # t=st.text_input("Enter the Text") # st.write(pipe(t)) # if y: t1=st.text_input("Enter the Text for Summarization") st.write(summarizer(t1))