Skip to content

Commit 40d5f64

Browse files
committed
fix: hide VLM Score row when no runs have VLM data
1 parent 90e11c4 commit 40d5f64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

skills/analysis/home-security-benchmark/scripts/generate-report.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,11 +625,12 @@ function renderQuality() {
625625
html += '<div class="table-wrap"><table class="compare-table"><thead><tr><th>Metric</th>';
626626
for (const r of sel) html += '<th class="model-col">' + esc(modelShort(r.model)) + '<br><span style="font-weight:400;font-size:0.68rem">' + shortDate(r.timestamp) + '</span></th>';
627627
html += '</tr></thead><tbody>';
628+
const hasVlm = sel.some(r => r.vlmTotal > 0);
628629
const hiRows = [
629630
['Pass Rate', r => r.total > 0 ? pct(r.passed, r.total) + '%' : '—'],
630631
['Score', r => r.passed + '/' + r.total],
631632
['LLM Score', r => r.llmTotal > 0 ? (r.llmPassed || 0) + '/' + (r.llmTotal || 0) : '—'],
632-
['VLM Score', r => r.vlmTotal > 0 ? (r.vlmPassed || 0) + '/' + (r.vlmTotal || 0) : '—'],
633+
...(hasVlm ? [['VLM Score', r => r.vlmTotal > 0 ? (r.vlmPassed || 0) + '/' + (r.vlmTotal || 0) : '—']] : []),
633634
['Failed', r => String(r.failed)],
634635
['Time', r => fmt(r.timeMs / 1000) + 's'],
635636
['Throughput', r => r.timeMs > 0 && r.tokens ? fmt(r.tokens / (r.timeMs / 1000)) + ' tok/s' : '—'],

0 commit comments

Comments
 (0)