Spaces:
Runtime error
Runtime error
Download src/lib/utils/model.ts from FallnAI/LLM-Inference: direct link, hf CLI and curl.
- Browser
- Download file 214 Bytes
-
https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/0ff4ef88e52ae018ce84a5c4cc1cd2d14ff35135/src/lib/utils/model.ts
- Command line
-
hf download hf://spaces/FallnAI/LLM-Inference@0ff4ef88e52ae018ce84a5c4cc1cd2d14ff35135/src/lib/utils/model.ts
-
curl -L -o model.ts https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/0ff4ef88e52ae018ce84a5c4cc1cd2d14ff35135/src/lib/utils/model.ts
214 Bytes
| import type { ModelWithTokenizer } from "$lib/types"; | |
| export function getTrending(models: ModelWithTokenizer[], limit = 5) { | |
| return models.toSorted((a, b) => b.trendingScore - a.trendingScore).slice(0, limit); | |
| } | |