Spaces:
Running
Running
Deploy hf/space from main d8cc6c2
Browse files
README.md
CHANGED
|
@@ -4,6 +4,7 @@ emoji: 🤝
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: gray
|
| 6 |
sdk: static
|
|
|
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
short_description: How well do your agents work with people?
|
|
@@ -14,3 +15,6 @@ datasets:
|
|
| 14 |
|
| 15 |
Cooperation Bench Explorer: the tasks, results and run replays of the public set of
|
| 16 |
[Cooperation Bench](https://huggingface.co/datasets/ScaleAI/cooperation-bench). Every person shown is simulated.
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
+
license: apache-2.0
|
| 8 |
app_file: index.html
|
| 9 |
pinned: false
|
| 10 |
short_description: How well do your agents work with people?
|
|
|
|
| 15 |
|
| 16 |
Cooperation Bench Explorer: the tasks, results and run replays of the public set of
|
| 17 |
[Cooperation Bench](https://huggingface.co/datasets/ScaleAI/cooperation-bench). Every person shown is simulated.
|
| 18 |
+
|
| 19 |
+
The Space's code is licensed under Apache 2.0. The tasks, results, replays and transcripts it shows are licensed under
|
| 20 |
+
CC BY 4.0, as in the dataset.
|
app6.js
CHANGED
|
@@ -617,7 +617,7 @@ function initExplorer() {
|
|
| 617 |
let rows = CATALOG.filter(c => Object.entries(st.f).every(([k, v]) => c[k] === v) && (!st.q || (c.id + c.line + c.persona).toLowerCase().includes(st.q)));
|
| 618 |
rows.sort((a, b) => { const fa = !!TASKS[a.id], fb = !!TASKS[b.id]; if (st.sort === "id" && fa !== fb) return fa ? -1 : 1; if (/^p_/.test(st.sort)) { const m = st.sort.slice(2), va = P1(a.id, m), vb = P1(b.id, m), ra = va ? va.pass / va.n : -1, rb = vb ? vb.pass / vb.n : -1; if (ra < 0 !== rb < 0) return ra < 0 ? 1 : -1; return (ra - rb) * st.dir || (vb ? vb.n : 0) - (va ? va.n : 0); } return String(a[st.sort]).localeCompare(String(b[st.sort])) * st.dir; });
|
| 619 |
const N0 = rows.length; if (!st.all && !st.q && !Object.keys(st.f).length) rows = rows.slice(0, 10);
|
| 620 |
-
$("#exbody").innerHTML = rows.map(c => { const f = !!TASKS[c.id]; return `<tr class="${f ? "feat" : ""}"${f ? ` data-href="#task-${c.id}" tabindex="0"` : ""}><td><b class="mono">${esc(c.id)}</b>${f ? '<span class="chip ok">Replay</span>' : ""}<p>${esc(c.line)}</p></td>${["fable", "astra", "carbon", "opus", "muse"].map(m => { const x = P1(c.id, m); return `<td class="mp1 mono">${x ? `${
|
| 621 |
$("#exCount").textContent = `${N0} of ${CATALOG.length} tasks`;
|
| 622 |
$("#exclr").hidden = !Object.keys(st.f).length && !st.q; $(".ex").classList.remove("closed"); $("#exmore").hidden = rows.length === N0; $("#exmore").textContent = $(".ex").classList.contains("closed") ? `Show the list of ${N0} tasks` : `Show all ${N0} tasks`;
|
| 623 |
$$(".tag[data-k]").forEach(b => b.setAttribute("aria-pressed", st.f[b.dataset.k] === b.dataset.v)); if (typeof mark === "function" && $("#dm").children.length) mark();
|
|
|
|
| 617 |
let rows = CATALOG.filter(c => Object.entries(st.f).every(([k, v]) => c[k] === v) && (!st.q || (c.id + c.line + c.persona).toLowerCase().includes(st.q)));
|
| 618 |
rows.sort((a, b) => { const fa = !!TASKS[a.id], fb = !!TASKS[b.id]; if (st.sort === "id" && fa !== fb) return fa ? -1 : 1; if (/^p_/.test(st.sort)) { const m = st.sort.slice(2), va = P1(a.id, m), vb = P1(b.id, m), ra = va ? va.pass / va.n : -1, rb = vb ? vb.pass / vb.n : -1; if (ra < 0 !== rb < 0) return ra < 0 ? 1 : -1; return (ra - rb) * st.dir || (vb ? vb.n : 0) - (va ? va.n : 0); } return String(a[st.sort]).localeCompare(String(b[st.sort])) * st.dir; });
|
| 619 |
const N0 = rows.length; if (!st.all && !st.q && !Object.keys(st.f).length) rows = rows.slice(0, 10);
|
| 620 |
+
$("#exbody").innerHTML = rows.map(c => { const f = !!TASKS[c.id]; return `<tr class="${f ? "feat" : ""}"${f ? ` data-href="#task-${c.id}" tabindex="0"` : ""}><td><b class="mono">${esc(c.id)}</b>${f ? '<span class="chip ok">Replay</span>' : ""}<p>${esc(c.line)}</p></td>${["fable", "astra", "carbon", "opus", "muse"].map(m => { const x = P1(c.id, m); return `<td class="mp1 mono">${x ? `${(x.pass / x.n).toFixed(2)}` : `<span class="na">–</span>`}</td>`; }).join("")}<td>${esc(c.dom)}</td></tr>`; }).join("") || `<tr><td colspan="7" class="empty">No task matches. Clear a filter.</td></tr>`;
|
| 621 |
$("#exCount").textContent = `${N0} of ${CATALOG.length} tasks`;
|
| 622 |
$("#exclr").hidden = !Object.keys(st.f).length && !st.q; $(".ex").classList.remove("closed"); $("#exmore").hidden = rows.length === N0; $("#exmore").textContent = $(".ex").classList.contains("closed") ? `Show the list of ${N0} tasks` : `Show all ${N0} tasks`;
|
| 623 |
$$(".tag[data-k]").forEach(b => b.setAttribute("aria-pressed", st.f[b.dataset.k] === b.dataset.v)); if (typeof mark === "function" && $("#dm").children.length) mark();
|