Spaces:
Running
Running
Push Bot
commited on
Commit
·
134f55d
1
Parent(s):
4aadfea
Preview-only image: hide all PDF HTML previews; debug flows return only PDF path; pipeline stops building PDF HTML
Browse files
app.py
CHANGED
|
@@ -2495,7 +2495,7 @@ def debug_compile_uploaded_zip(zip_file):
|
|
| 2495 |
+ _pdf_to_iframe_html(pdf_path, height="700px")
|
| 2496 |
)
|
| 2497 |
_write_logs(LOG_PATH, logs)
|
| 2498 |
-
return
|
| 2499 |
except Exception as e:
|
| 2500 |
logs.append(f"⚠️ preview failed: {e}")
|
| 2501 |
_write_logs(LOG_PATH, logs)
|
|
|
|
| 2495 |
+ _pdf_to_iframe_html(pdf_path, height="700px")
|
| 2496 |
)
|
| 2497 |
_write_logs(LOG_PATH, logs)
|
| 2498 |
+
return "", str(pdf_path)
|
| 2499 |
except Exception as e:
|
| 2500 |
logs.append(f"⚠️ preview failed: {e}")
|
| 2501 |
_write_logs(LOG_PATH, logs)
|