Soumen commited on
Commit
0a289a3
·
1 Parent(s): b1bbdab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ headers0 = {"Authorization": "Bearer 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"}
42
  def read_pdf(file):
43
  # images=pdf2image.convert_from_path(file)
44
  # # print(type(images))
45
- fileobj = open(str(file), 'rb')
46
  pdfReader = PdfFileReader(fileobj)
47
  count = pdfReader.numPages
48
  all_page_text = " "
 
42
  def read_pdf(file):
43
  # images=pdf2image.convert_from_path(file)
44
  # # print(type(images))
45
+ fileobj = open(file, 'rb')
46
  pdfReader = PdfFileReader(fileobj)
47
  count = pdfReader.numPages
48
  all_page_text = " "