diff --git a/src/lib/components/admin/Evaluations.svelte b/src/lib/components/admin/Evaluations.svelte
index 89b7664d82..b55f096ee9 100644
--- a/src/lib/components/admin/Evaluations.svelte
+++ b/src/lib/components/admin/Evaluations.svelte
@@ -6,7 +6,6 @@
import Leaderboard from './Evaluations/Leaderboard.svelte';
import Feedbacks from './Evaluations/Feedbacks.svelte';
-
const i18n = getContext('i18n');
let selectedTab;
diff --git a/src/lib/components/admin/Evaluations/Leaderboard.svelte b/src/lib/components/admin/Evaluations/Leaderboard.svelte
index 0fdfd6f68c..837400e007 100644
--- a/src/lib/components/admin/Evaluations/Leaderboard.svelte
+++ b/src/lib/components/admin/Evaluations/Leaderboard.svelte
@@ -45,9 +45,7 @@
loading = true;
try {
const result = await getLeaderboard(localStorage.token, searchQuery);
- const statsMap = new Map(
- (result?.entries ?? []).map((e) => [e.model_id, e])
- );
+ const statsMap = new Map((result?.entries ?? []).map((e) => [e.model_id, e]));
rankedModels = $models
.filter((m) => m?.owned_by !== 'arena' && !m?.info?.meta?.hidden)
@@ -106,7 +104,9 @@
| toggleSort(col.key)}
>
-
+
{$i18n.t(col.label)}
{#if orderBy === col.key}
- {#if direction === 'asc'}
{#if model.stats.won === '-'}-{:else}
- {((Number(model.stats.won) / model.stats.count) * 100).toFixed(1)}%
+ {((Number(model.stats.won) / model.stats.count) * 100).toFixed(1)}%
{model.stats.won}
{/if}
|
{#if model.stats.lost === '-'}-{:else}
- {((Number(model.stats.lost) / model.stats.count) * 100).toFixed(1)}%
+ {((Number(model.stats.lost) / model.stats.count) * 100).toFixed(1)}%
{model.stats.lost}
{/if}
|
@@ -204,8 +214,12 @@
- ⓘ {$i18n.t('The evaluation leaderboard is based on the Elo rating system and is updated in real-time.')}
+ ⓘ {$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.')}
+ {$i18n.t(
+ 'The leaderboard is currently in beta, and we may adjust the rating calculations as we refine the algorithm.'
+ )}
|
|---|