anmolsahai commited on
Commit
fc4e550
1 Parent(s): 8024e72
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def pdf_to_text_with_layout(pdf_file):
14
  for page_num in range(doc.page_count):
15
  page = doc.load_page(page_num)
16
  text.append(page.get_text("text"))
17
- return "\n.join(text)
18
 
19
  def clean_text(text):
20
  # Remove non-ASCII and control characters
 
14
  for page_num in range(doc.page_count):
15
  page = doc.load_page(page_num)
16
  text.append(page.get_text("text"))
17
+ return "\n".join(text)
18
 
19
  def clean_text(text):
20
  # Remove non-ASCII and control characters