prlabs2023 commited on
Commit
886c3b9
1 Parent(s): 6566a4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ summarizer = pipeline(
50
 
51
  def generate_summary(text):
52
 
53
- result = summarizer(text)
54
  return result[0]["summary_text"]
55
  # cut off at BERT max length 512
56
  # inputs = tokenizer([text], padding="max_length", truncation=True, max_length=512, return_tensors="pt")
 
50
 
51
  def generate_summary(text):
52
 
53
+ result = summarizer(text,max_length=10000)
54
  return result[0]["summary_text"]
55
  # cut off at BERT max length 512
56
  # inputs = tokenizer([text], padding="max_length", truncation=True, max_length=512, return_tensors="pt")