{$i18n.t("Leaderboard")} {rankedModels.length}
{#if loading}
{/if} {#if !rankedModels.length && !loading}
{$i18n.t("No models found")}
{:else if rankedModels.length} {#each [{ key: "rating", label: "RK", class: "w-3" }, { key: "name", label: "Model", class: "" }, { key: "rating", label: "Rating", class: "text-right w-fit" }, { key: "won", label: "Won", class: "text-right w-5" }, { key: "lost", label: "Lost", class: "text-right w-5" }] as col} {/each} {#each sortedModels as model, idx (model.id)} openModal(model)} > {/each}
toggleSort(col.key)} >
{$i18n.t(col.label)} {#if orderBy === col.key} {#if direction === "asc"}{:else}{/if} {:else} {/if}
{model.rating !== "-" ? idx + 1 : "-"}
{model.name} { e.target.src = "/favicon.png"; }} /> {model.name}
{model.rating} {#if model.stats.won === "-"}-{:else} {model.stats.won} {/if} {#if model.stats.lost === "-"}-{:else} {model.stats.lost} {/if}
{/if}
ⓘ {$i18n.t( "The evaluation leaderboard is based on the Elo rating system and is updated in real-time.", )}
{$i18n.t( "The leaderboard is currently in beta, and we may adjust the rating calculations as we refine the algorithm.", )}