Liam Dyer commited on
Commit
a2dee03
·
unverified ·
1 Parent(s): e8f5eaa

improve output formatting

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def convert(pdf_file):
25
  for idx, page in enumerate(reader.pages):
26
  text = page.extract_text()
27
  if len(text) > 0:
28
- full_text += f"\n\n---- Page {idx} ----\n\n" + page.extract_text()
29
 
30
  # Extract metadata
31
  metadata = {
 
25
  for idx, page in enumerate(reader.pages):
26
  text = page.extract_text()
27
  if len(text) > 0:
28
+ full_text += f"---- Page {idx} ----\n" + page.extract_text() + "\n\n"
29
 
30
  # Extract metadata
31
  metadata = {