MrGanesh's picture
init!
3a2eb2d
raw
history blame
267 Bytes
import streamlit as st
from transformers import pipeline
summarizer = pipeline("summarization", model="google/bigbird-pegasus-large-bigpatent")
text=st.text_area('Enter Patent Text')
if text:
out=summarizer(text,min_length=150, max_length=500)
st.json(out)