QuickLearnerAI commited on
Commit
4c0afc5
·
verified ·
1 Parent(s): 14aafa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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:\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 = ""
 
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:\Program Files (x86)\Release-23.11.0-0\poppler-23.11.0\Library\bin"):
14
  try:
15
  images = convert_from_bytes(pdf_bytes,poppler_path=poppler_path)
16
  text = ""