Soumen commited on
Commit
8c41dee
·
1 Parent(s): 42268bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = ""