Spaces:
Running
Running
Push Bot
commited on
Commit
·
2d9f808
1
Parent(s):
b5c2d8d
Preview-only image: hide all PDF HTML previews; debug flows return only PDF path; pipeline stops building PDF HTML
Browse files
app.py
CHANGED
|
@@ -2842,7 +2842,7 @@ def debug_compile_uploaded_zip(zip_file):
|
|
| 2842 |
+ _pdf_to_iframe_html(pdf_path, height="700px")
|
| 2843 |
)
|
| 2844 |
_write_logs(LOG_PATH, logs)
|
| 2845 |
-
return
|
| 2846 |
except Exception as e:
|
| 2847 |
logs.append(f"⚠️ preview failed: {e}")
|
| 2848 |
_write_logs(LOG_PATH, logs)
|
|
|
|
| 2842 |
+ _pdf_to_iframe_html(pdf_path, height="700px")
|
| 2843 |
)
|
| 2844 |
_write_logs(LOG_PATH, logs)
|
| 2845 |
+
return "", str(pdf_path)
|
| 2846 |
except Exception as e:
|
| 2847 |
logs.append(f"⚠️ preview failed: {e}")
|
| 2848 |
_write_logs(LOG_PATH, logs)
|