Mishmosh commited on
Commit
dda3639
1 Parent(s): 6904703

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,6 +45,7 @@ from PIL import Image
45
  from pdf2image import convert_from_path
46
  import pytesseract
47
  import os
 
48
  def text_extraction(element):
49
  # Extracting the text from the in-line text element
50
  line_text = element.get_text()
@@ -121,7 +122,7 @@ def table_converter(table):
121
  table_string = table_string[:-1]
122
  return table_string
123
  # @title
124
- def read_pdf(received_pdf.pdf):
125
  # create a PDF file object
126
  pdfFileObj = open(pdf_path, 'rb')
127
  # create a PDF reader object
 
45
  from pdf2image import convert_from_path
46
  import pytesseract
47
  import os
48
+ pdf_path="received_pdf.pdf"
49
  def text_extraction(element):
50
  # Extracting the text from the in-line text element
51
  line_text = element.get_text()
 
122
  table_string = table_string[:-1]
123
  return table_string
124
  # @title
125
+ def read_pdf(pdf_path):
126
  # create a PDF file object
127
  pdfFileObj = open(pdf_path, 'rb')
128
  # create a PDF reader object