Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,9 @@ def extract_text_markdown(doc, image_paths, page_index, seen_xrefs):
|
|
73 |
def convert(inputs):
|
74 |
# <- inputs es una lista, aunque solo tenga 1 archivo
|
75 |
pdf_file = inputs[0]
|
76 |
-
|
77 |
-
|
|
|
78 |
|
79 |
doc = fitz.open(pdf_file)
|
80 |
markdown_output = ""
|
|
|
73 |
def convert(inputs):
|
74 |
# <- inputs es una lista, aunque solo tenga 1 archivo
|
75 |
pdf_file = inputs[0]
|
76 |
+
print(f"Entradas recibidas: {inputs}")
|
77 |
+
if not inputs or not os.path.exists(inputs[0]):
|
78 |
+
return "Archivo no encontrado o inválido.", [], ""
|
79 |
|
80 |
doc = fitz.open(pdf_file)
|
81 |
markdown_output = ""
|