Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def ocr_pdf(file_path):
|
|
15 |
extracted_text = ""
|
16 |
for i, image in enumerate(images):
|
17 |
text = pytesseract.image_to_string(image)
|
18 |
-
extracted_text += f"
|
19 |
|
20 |
# Save the extracted text to a .txt file in a persistent location
|
21 |
output_txt_path = os.path.join(temp_dir, "extracted_text.txt")
|
|
|
15 |
extracted_text = ""
|
16 |
for i, image in enumerate(images):
|
17 |
text = pytesseract.image_to_string(image)
|
18 |
+
extracted_text += f"\n{text}\n\n"
|
19 |
|
20 |
# Save the extracted text to a .txt file in a persistent location
|
21 |
output_txt_path = os.path.join(temp_dir, "extracted_text.txt")
|