Mishmosh commited on
Commit
50d55de
·
1 Parent(s): 1ef1dd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def image_to_text(image_path):
100
 
101
  def extract_table(pdf_path, page_num, table_num):
102
  # Open the pdf file
103
- pdf = pdfplumber.open(pdf_path)
104
  # Find the examined page
105
  table_page = pdf.pages[page_num]
106
  # Extract the appropriate table
 
100
 
101
  def extract_table(pdf_path, page_num, table_num):
102
  # Open the pdf file
103
+ pdf = received_pdf.pdf
104
  # Find the examined page
105
  table_page = pdf.pages[page_num]
106
  # Extract the appropriate table