Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ import pytesseract
|
|
47 |
#pytesseract.pytesseract.tesseract_cmd = r"./Tesseract-OCR/tesseract.exe"
|
48 |
from PIL import Image
|
49 |
def read_pdf(file):
|
50 |
-
images=convert_from_bytes(file.read())
|
51 |
#pdfReader = PdfFileReader(file)
|
52 |
#count = pdfReader.numPages
|
53 |
all_page_text = ""
|
|
|
47 |
#pytesseract.pytesseract.tesseract_cmd = r"./Tesseract-OCR/tesseract.exe"
|
48 |
from PIL import Image
|
49 |
def read_pdf(file):
|
50 |
+
images=pdf2image.convert_from_bytes(file.read())
|
51 |
#pdfReader = PdfFileReader(file)
|
52 |
#count = pdfReader.numPages
|
53 |
all_page_text = ""
|