Spaces:
Runtime error
Runtime error
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) |