Spaces:
Running
Running
Marlin Lee commited on
Commit Β·
fc53679
1
Parent(s): 6c602aa
Debug: verify auto_interp file before Bokeh start
Browse files- entrypoint.sh +17 -0
entrypoint.sh
CHANGED
|
@@ -86,6 +86,23 @@ if [ ! -f "$PRIMARY" ]; then
|
|
| 86 |
exit 1
|
| 87 |
fi
|
| 88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
# ββ Launch Bokeh server βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 90 |
echo "Starting Bokeh server on port 7860..."
|
| 91 |
echo " Primary data: $PRIMARY"
|
|
|
|
| 86 |
exit 1
|
| 87 |
fi
|
| 88 |
|
| 89 |
+
# ββ Verify key files βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 90 |
+
python3 - <<'PYEOF'
|
| 91 |
+
import os, json
|
| 92 |
+
pt = "/app/data/explorer_data_d32000_k160_val.pt"
|
| 93 |
+
js = "/app/data/explorer_data_d32000_k160_val_auto_interp.json"
|
| 94 |
+
print(f"PT exists={os.path.exists(pt)} isfile={os.path.isfile(pt)} islink={os.path.islink(pt)}")
|
| 95 |
+
print(f"JSON exists={os.path.exists(js)} isfile={os.path.isfile(js)} islink={os.path.islink(js)}")
|
| 96 |
+
if os.path.islink(js):
|
| 97 |
+
target = os.readlink(js)
|
| 98 |
+
print(f" -> symlink target: {target}")
|
| 99 |
+
print(f" -> target exists: {os.path.exists(target)}")
|
| 100 |
+
if os.path.isfile(js):
|
| 101 |
+
with open(js) as f:
|
| 102 |
+
d = json.load(f)
|
| 103 |
+
print(f" -> {len(d)} auto-interp entries")
|
| 104 |
+
PYEOF
|
| 105 |
+
|
| 106 |
# ββ Launch Bokeh server βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 107 |
echo "Starting Bokeh server on port 7860..."
|
| 108 |
echo " Primary data: $PRIMARY"
|