Spaces:
Paused
Fix dashboard 404 by shipping artifacts/ into the Space image
Browse filesThe Space homepage exposed Post-Training and Pre-Training dashboard
buttons but every click returned
{"detail":"Post-training dashboard not found"} because the Dockerfile
never copied the artifacts/ tree into the image and .dockerignore
explicitly excluded it. The html files were on hf/main but absent
from the runtime container fs.
.dockerignore: keep ignoring artifacts/* by default but un-ignore the
small evaluation/baseline/dashboard files that the Space UI loads:
artifacts/baselines/**, artifacts/local_hf_eval_round_006/**,
artifacts/latest_evaluation.json, artifacts/leaderboard.json.
Dockerfile: COPY --chown=user artifacts $HOME/app/artifacts so the
selectively-allowed files actually land inside the image. Heavy
training outputs stay excluded by the artifacts/* rule above.
Also rename the dashboard html titles to "OSINT Benchmark Dashboard
post Training" / "OSINT Benchmark Dashboard pre Training" so the two
views are distinguishable inside the iframe view.
Made-with: Cursor
|
@@ -5,5 +5,14 @@ __pycache__
|
|
| 5 |
*.pyo
|
| 6 |
*.pyd
|
| 7 |
.Python
|
| 8 |
-
artifacts
|
| 9 |
tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
*.pyo
|
| 6 |
*.pyd
|
| 7 |
.Python
|
|
|
|
| 8 |
tests
|
| 9 |
+
|
| 10 |
+
# Block heavy training outputs by default but keep the small evaluation /
|
| 11 |
+
# baseline / dashboard artifacts that the Space UI needs at runtime.
|
| 12 |
+
artifacts/*
|
| 13 |
+
!artifacts/baselines
|
| 14 |
+
!artifacts/baselines/**
|
| 15 |
+
!artifacts/local_hf_eval_round_006
|
| 16 |
+
!artifacts/local_hf_eval_round_006/**
|
| 17 |
+
!artifacts/latest_evaluation.json
|
| 18 |
+
!artifacts/leaderboard.json
|
|
@@ -18,6 +18,7 @@ COPY --chown=user datasets $HOME/app/datasets
|
|
| 18 |
COPY --chown=user docs $HOME/app/docs
|
| 19 |
COPY --chown=user scripts $HOME/app/scripts
|
| 20 |
COPY --chown=user server.py $HOME/app/server.py
|
|
|
|
| 21 |
|
| 22 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 23 |
pip install --no-cache-dir -e ".[train]" && \
|
|
|
|
| 18 |
COPY --chown=user docs $HOME/app/docs
|
| 19 |
COPY --chown=user scripts $HOME/app/scripts
|
| 20 |
COPY --chown=user server.py $HOME/app/server.py
|
| 21 |
+
COPY --chown=user artifacts $HOME/app/artifacts
|
| 22 |
|
| 23 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 24 |
pip install --no-cache-dir -e ".[train]" && \
|
|
@@ -146,7 +146,7 @@
|
|
| 146 |
<div class="wrap">
|
| 147 |
<div class="hero">
|
| 148 |
<section class="card hero-main">
|
| 149 |
-
<h1>OSINT Benchmark Dashboard</h1>
|
| 150 |
<p class="muted">Interactive explorer for canonical knowledge graph, episode traces, source platform records, and benchmark ranking.</p>
|
| 151 |
<div class="pill-row" id="hero-pills"></div>
|
| 152 |
<div class="stats" id="stats"></div>
|
|
|
|
| 146 |
<div class="wrap">
|
| 147 |
<div class="hero">
|
| 148 |
<section class="card hero-main">
|
| 149 |
+
<h1>OSINT Benchmark Dashboard post Training</h1>
|
| 150 |
<p class="muted">Interactive explorer for canonical knowledge graph, episode traces, source platform records, and benchmark ranking.</p>
|
| 151 |
<div class="pill-row" id="hero-pills"></div>
|
| 152 |
<div class="stats" id="stats"></div>
|
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
-
<title>OSINT Environment Dashboard</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
| 9 |
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet" />
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>OSINT Environment Dashboard pre Training</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
| 9 |
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet" />
|