Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,6 +53,7 @@ def upload_file(filepath):
|
|
| 53 |
name = Path(filepath).name
|
| 54 |
# load pdf
|
| 55 |
doc = fitz.open(filepath)
|
|
|
|
| 56 |
df_table = create_excel(doc)
|
| 57 |
# now create the excel file
|
| 58 |
return [gr.UploadButton(visible=False), gr.DownloadButton(label=f"Download tabla.xlsx", value=df_table, visible=True)]
|
|
|
|
| 53 |
name = Path(filepath).name
|
| 54 |
# load pdf
|
| 55 |
doc = fitz.open(filepath)
|
| 56 |
+
print(doc)
|
| 57 |
df_table = create_excel(doc)
|
| 58 |
# now create the excel file
|
| 59 |
return [gr.UploadButton(visible=False), gr.DownloadButton(label=f"Download tabla.xlsx", value=df_table, visible=True)]
|