Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,11 +38,11 @@ def main():
|
|
38 |
def pdf_to_excel_function(pdf_file):
|
39 |
# Save the uploaded PDF to a temporary file
|
40 |
pdf_path = "temp.pdf"
|
41 |
-
with open(pdf_path, "wb") as f:
|
42 |
-
|
43 |
|
44 |
# Convert PDF to DataFrame
|
45 |
-
df = pdf_to_dataframe(
|
46 |
|
47 |
# Save DataFrame to Excel
|
48 |
excel_path = "output.xlsx"
|
|
|
38 |
def pdf_to_excel_function(pdf_file):
|
39 |
# Save the uploaded PDF to a temporary file
|
40 |
pdf_path = "temp.pdf"
|
41 |
+
# with open(pdf_path, "wb") as f:
|
42 |
+
# f.write(pdf_file.read())
|
43 |
|
44 |
# Convert PDF to DataFrame
|
45 |
+
df = pdf_to_dataframe(pdf_file)
|
46 |
|
47 |
# Save DataFrame to Excel
|
48 |
excel_path = "output.xlsx"
|