Spaces:
Sleeping
Sleeping
Sort models lexiographically (#3)
Browse files50 unmodified lines51525354555650 unmodified lines// TODO: use hfjs.hub listModels after https://github.com/huggingface/huggingface.js/pull/795const res = await fetch("https://huggingface.co/api/models?pipeline_tag=text-generation&inferenceStatus=loaded&filter=conversational");compatibleModels = await res.json() as ModelEntry[];})();})50 unmodified lines5152535455565750 unmodified lines// TODO: use hfjs.hub listModels after https://github.com/huggingface/huggingface.js/pull/795const res = await fetch("https://huggingface.co/api/models?pipeline_tag=text-generation&inferenceStatus=loaded&filter=conversational");compatibleModels = await res.json() as ModelEntry[];compatibleModels.sort((a, b) => a.id.toLowerCase().localeCompare(b.id.toLowerCase()));})();})
src/lib/components/Playground/Playground.svelte+1