Alanturner2 commited on
Commit
6502016
·
verified ·
1 Parent(s): 369077b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def summarize_pdf(pdf_file_path, max_length):
42
  for i in range(len(chunks)):
43
  # text = chunks[i].page_content
44
  text = chunks[i]
45
- summary += summarizer(text)[0]['summary_text']
46
  # summary = str(max_length)
47
  return summary
48
 
 
42
  for i in range(len(chunks)):
43
  # text = chunks[i].page_content
44
  text = chunks[i]
45
+ summary += summarize_text(text)
46
  # summary = str(max_length)
47
  return summary
48