Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix total model count
Browse files
frontend/src/pages/LeaderboardPage/components/Leaderboard/hooks/useDataUtils.js
CHANGED
@@ -139,7 +139,12 @@ export const useFilteredData = (
|
|
139 |
|
140 |
// Filter by parameters
|
141 |
filteredUnpinned = filteredUnpinned.filter((row) => {
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
143 |
return params >= paramsRange[0] && params < paramsRange[1];
|
144 |
});
|
145 |
|
|
|
139 |
|
140 |
// Filter by parameters
|
141 |
filteredUnpinned = filteredUnpinned.filter((row) => {
|
142 |
+
// Skip parameter filtering if no filter is active
|
143 |
+
if (paramsRange[0] === -1 && paramsRange[1] === 140) return true;
|
144 |
+
|
145 |
+
const params =
|
146 |
+
row.metadata?.params_billions || row.features?.params_billions;
|
147 |
+
if (params === undefined || params === null) return false;
|
148 |
return params >= paramsRange[0] && params < paramsRange[1];
|
149 |
});
|
150 |
|