Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|