import streamlit as st import pandas as pd #import torch from transformers import pipeline summarizer = pipeline("summarization", model="google/bigbird-pegasus-large-bigpatent" def summary(): # st.title("DOCUMENT SUMMARIZER") html_temp = """

PATENT SUMMARIZER

""" st.markdown(html_temp, unsafe_allow_html = True) my_file=st.text_area("Paste Document content", placeholder="Paste here",height=60) result ="" if st.button("Summarize"): result = summarizer(my_file) st.success(result) summary()