Spaces:
Sleeping
Sleeping
Push Bot
commited on
Commit
ยท
4b520da
1
Parent(s):
2155b6e
Fix SyntaxError; simplify debug; stage repo zip; make packages.txt empty
Browse files
app.py
CHANGED
|
@@ -1803,7 +1803,18 @@ def debug_compile_last_pipeline_zip():
|
|
| 1803 |
logs = [f"๐ Debug(last-pipeline-zip) at {_now_str()}"]
|
| 1804 |
last_zip = _find_last_pipeline_zip()
|
| 1805 |
if not last_zip:
|
| 1806 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1807 |
|
| 1808 |
# Prepare workspace
|
| 1809 |
run_id, WORK_DIR, LOG_PATH, _ = _prepare_workspace(logs)
|
|
|
|
| 1803 |
logs = [f"๐ Debug(last-pipeline-zip) at {_now_str()}"]
|
| 1804 |
last_zip = _find_last_pipeline_zip()
|
| 1805 |
if not last_zip:
|
| 1806 |
+
repo_zip = ROOT / "output.zip"
|
| 1807 |
+
if repo_zip.exists():
|
| 1808 |
+
try:
|
| 1809 |
+
_, W, L, Z = _prepare_workspace(logs)
|
| 1810 |
+
shutil.copy2(repo_zip, Z)
|
| 1811 |
+
logs.append(f"๐ฆ Auto-staged repo output.zip โ runs/{W.name}/output.zip")
|
| 1812 |
+
last_zip = Z
|
| 1813 |
+
except Exception as e:
|
| 1814 |
+
logs.append(f"โ Auto-stage failed: {e}")
|
| 1815 |
+
return "<div style='color:#b00'>No recent pipeline output.zip found and auto-stage failed.</div>"
|
| 1816 |
+
else:
|
| 1817 |
+
return "<div style='color:#b00'>No recent pipeline output.zip found under runs/.</div>"
|
| 1818 |
|
| 1819 |
# Prepare workspace
|
| 1820 |
run_id, WORK_DIR, LOG_PATH, _ = _prepare_workspace(logs)
|