Spaces:
Running
Running
Deploy hf/space from main d8cc6c2
Browse files3 unmodified lines456789104 unmodified lines1516171819203 unmodified linescolorFrom: graycolorTo: graysdk: staticlicense: apache-2.0app_file: index.htmlpinned: falseshort_description: How well do your agents work with people?4 unmodified lines
Cooperation Bench Explorer: the tasks, results and run replays of the public set of[Cooperation Bench](https://huggingface.co/datasets/ScaleAI/cooperation-bench). Every person shown is simulated.
The Space's code is licensed under Apache 2.0. The tasks, results, replays and transcripts it shows are licensed underCC BY 4.0, as in the dataset.616 unmodified lines617618619620620621622623616 unmodified lines 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))); 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; }); const N0 = rows.length; if (!st.all && !st.q && !Object.keys(st.f).length) rows = rows.slice(0, 10); $("#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 ? `${Math.round(x.pass / x.n * 100)}%<small>${x.pass}/${x.n}</small>` : `<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>`; $("#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>`; $("#exCount").textContent = `${N0} of ${CATALOG.length} tasks`; $("#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`; $$(".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();README.md+4
app6.js+1-1