gianb commited on
Commit
65694da
·
1 Parent(s): 64a9db7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ summarization = pipeline ('summarization', model = "pszemraj/long-t5-tglobal-bas
22
 
23
  def summarize_and_speech(pdf_file):
24
  pdf_bytes_io = io.BytesIO(pdf_file)
25
- pdf_reader = PyPDF2.PdfFileReader(pdf_bytes_io)
26
  abstract_text = pdf_reader.pages[0].extract_text()
27
  summary = summarization(abstract_text, max_length=13, min_length=10)[0]['summary_text']
28
 
 
22
 
23
  def summarize_and_speech(pdf_file):
24
  pdf_bytes_io = io.BytesIO(pdf_file)
25
+ pdf_reader = PyPDF2.PdfReader(pdf_bytes_io)
26
  abstract_text = pdf_reader.pages[0].extract_text()
27
  summary = summarization(abstract_text, max_length=13, min_length=10)[0]['summary_text']
28