Skip to content

Commit

Permalink
Update pdf_upload_summarization.ipynb
Browse files Browse the repository at this point in the history
Replace list comprehension with shorter generator expression.
  • Loading branch information
mikez committed Apr 28, 2024
1 parent 78ef000 commit 6f4cfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/pdf_upload_summarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"\n",
"reader = PdfReader(\"2212.08073.pdf\")\n",
"number_of_pages = len(reader.pages)\n",
"text = ''.join([page.extract_text() for page in reader.pages])\n",
"text = ''.join(page.extract_text() for page in reader.pages)\n",
"print(text[:2155])"
]
},
Expand Down

0 comments on commit 6f4cfa8

Please sign in to comment.