Mishmosh commited on
Commit
0cb41d9
1 Parent(s): dda3639

Update app.py

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