Spaces:
Running
Running
Label chart as PyBot and remove supporting chart copy
Browse files- site/index.html +1 -4
- site/progress.js +4 -4
site/index.html
CHANGED
|
@@ -84,11 +84,8 @@
|
|
| 84 |
<p class="foot">PyBot at commit <a id="commit" target="_blank" rel="noopener"></a>. Click a file to open it on the Hub.</p>
|
| 85 |
<section class="progress" aria-labelledby="progress-title">
|
| 86 |
<h2 id="progress-title">Learning to converse, one revision at a time</h2>
|
| 87 |
-
<
|
| 88 |
-
<div id="progress-chart" role="img" aria-label="Line chart of SwarmChat-v8 win rate over evaluated revisions, with three SmolLM baselines"></div>
|
| 89 |
<p class="foot" id="progress-status" aria-live="polite">Loading evaluation history…</p>
|
| 90 |
-
<p class="foot">Length-penalised win rate on 1,000 prompts. November 7 outage evaluations are excluded; revision numbers are preserved.
|
| 91 |
-
Source: <a href="https://huggingface.co/spaces/HuggingFaceSwarms/swarmchat-leaderboard" target="_blank" rel="noopener">SwarmChat leaderboard</a>.</p>
|
| 92 |
</section>
|
| 93 |
</main>
|
| 94 |
<script>/**
|
|
|
|
| 84 |
<p class="foot">PyBot at commit <a id="commit" target="_blank" rel="noopener"></a>. Click a file to open it on the Hub.</p>
|
| 85 |
<section class="progress" aria-labelledby="progress-title">
|
| 86 |
<h2 id="progress-title">Learning to converse, one revision at a time</h2>
|
| 87 |
+
<div id="progress-chart" role="img" aria-label="Line chart of PyBot win rate over evaluated revisions, with three SmolLM baselines"></div>
|
|
|
|
| 88 |
<p class="foot" id="progress-status" aria-live="polite">Loading evaluation history…</p>
|
|
|
|
|
|
|
| 89 |
</section>
|
| 90 |
</main>
|
| 91 |
<script>/**
|
site/progress.js
CHANGED
|
@@ -7,11 +7,11 @@ async function drawProgress() {
|
|
| 7 |
const points = data.points;
|
| 8 |
const extent = [points[0].revision, points[points.length - 1].revision];
|
| 9 |
const traces = [{
|
| 10 |
-
type: "scatter", mode: "lines", name: "
|
| 11 |
x: points.map(p => p.revision), y: points.map(p => p.score),
|
| 12 |
customdata: points.map(p => p.commit),
|
| 13 |
line: {color: "#eb6834", width: 2},
|
| 14 |
-
hovertemplate: "
|
| 15 |
}, ...data.baselines.map((baseline, index) => ({
|
| 16 |
type: "scatter", mode: "lines",
|
| 17 |
name: `${baseline.name} (${baseline.score.toFixed(1)}%)`,
|
|
@@ -31,10 +31,10 @@ async function drawProgress() {
|
|
| 31 |
legend: {orientation: "h", x: 0, y: -0.25, yanchor: "top", font: {size: 11}},
|
| 32 |
hoverlabel: {bgcolor: "#ffffff", bordercolor: "#000000"}
|
| 33 |
}, {responsive: true, displayModeBar: false, displaylogo: false});
|
| 34 |
-
status.
|
| 35 |
} catch (error) {
|
| 36 |
document.getElementById("progress-chart").hidden = true;
|
| 37 |
-
status.textContent = "The progress chart is unavailable.
|
| 38 |
}
|
| 39 |
}
|
| 40 |
drawProgress();
|
|
|
|
| 7 |
const points = data.points;
|
| 8 |
const extent = [points[0].revision, points[points.length - 1].revision];
|
| 9 |
const traces = [{
|
| 10 |
+
type: "scatter", mode: "lines", name: "PyBot",
|
| 11 |
x: points.map(p => p.revision), y: points.map(p => p.score),
|
| 12 |
customdata: points.map(p => p.commit),
|
| 13 |
line: {color: "#eb6834", width: 2},
|
| 14 |
+
hovertemplate: "PyBot · revision %{x:,}<br>Win rate: %{y:.2f}%<br>Commit %{customdata}<extra></extra>"
|
| 15 |
}, ...data.baselines.map((baseline, index) => ({
|
| 16 |
type: "scatter", mode: "lines",
|
| 17 |
name: `${baseline.name} (${baseline.score.toFixed(1)}%)`,
|
|
|
|
| 31 |
legend: {orientation: "h", x: 0, y: -0.25, yanchor: "top", font: {size: 11}},
|
| 32 |
hoverlabel: {bgcolor: "#ffffff", bordercolor: "#000000"}
|
| 33 |
}, {responsive: true, displayModeBar: false, displaylogo: false});
|
| 34 |
+
status.hidden = true;
|
| 35 |
} catch (error) {
|
| 36 |
document.getElementById("progress-chart").hidden = true;
|
| 37 |
+
status.textContent = "The progress chart is currently unavailable.";
|
| 38 |
}
|
| 39 |
}
|
| 40 |
drawProgress();
|