Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#2
by
Kwent
- opened
app.py
CHANGED
@@ -41,7 +41,7 @@ def convert(pdf_file):
|
|
41 |
ocrmypdf.ocr(pdf_file, out_pdf_file, force_ocr=True)
|
42 |
|
43 |
# Re-extract text
|
44 |
-
reader = PdfReader(
|
45 |
full_text = extract_text_from_pdf(reader)
|
46 |
|
47 |
return full_text, metadata
|
|
|
41 |
ocrmypdf.ocr(pdf_file, out_pdf_file, force_ocr=True)
|
42 |
|
43 |
# Re-extract text
|
44 |
+
reader = PdfReader(out_pdf_file)
|
45 |
full_text = extract_text_from_pdf(reader)
|
46 |
|
47 |
return full_text, metadata
|