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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -42,8 +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(file, 'rb')
46
- pdfReader = PdfFileReader(fileobj)
47
  count = pdfReader.numPages
48
  all_page_text = " "
49
  for i in range(count):
 
42
  def read_pdf(file):
43
  # images=pdf2image.convert_from_path(file)
44
  # # print(type(images))
45
+ pdfReader = PdfFileReader(file)
 
46
  count = pdfReader.numPages
47
  all_page_text = " "
48
  for i in range(count):