Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from PIL import Image
|
|
| 10 |
# Optional (for Windows): Uncomment if needed
|
| 11 |
# pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
|
| 12 |
|
| 13 |
-
def extract_text_with_ocr(pdf_bytes, poppler_path=r"C:\
|
| 14 |
try:
|
| 15 |
images = convert_from_bytes(pdf_bytes,poppler_path=poppler_path)
|
| 16 |
text = ""
|
|
|
|
| 10 |
# Optional (for Windows): Uncomment if needed
|
| 11 |
# pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
|
| 12 |
|
| 13 |
+
def extract_text_with_ocr(pdf_bytes, poppler_path=r"C:\Release-24.08.0-0\poppler-24.08.0\Library\bin"):
|
| 14 |
try:
|
| 15 |
images = convert_from_bytes(pdf_bytes,poppler_path=poppler_path)
|
| 16 |
text = ""
|