Spaces:
Sleeping
Sleeping
make search working
Browse files9 unmodified lines10111213141514 unmodified lines303132333435363711 unmodified lines495051525354559 unmodified linesexport let models: ModelEntryWithTokenizer[];let backdropEl: HTMLDivElement;const dispatch = createEventDispatcher<{ modelSelected: string; close: void }>();14 unmodified lines}}$: featuredModels = models.filter(m => FEATUED_MODELS_IDS.includes(m.id));$: otherModels = models.filter(m => !FEATUED_MODELS_IDS.includes(m.id));</script><svelte:window on:keydown={handleKeydown} />11 unmodified linesautofocusclass="flex h-10 w-full rounded-md bg-transparent py-3 text-sm placeholder-gray-400 outline-none"placeholder="Search models ..."value=""/></div><div class="max-h-[300px] overflow-y-auto overflow-x-hidden">9 unmodified lines1011121314151614 unmodified lines3132333435363738394041424344454611 unmodified lines585960616263649 unmodified linesexport let models: ModelEntryWithTokenizer[];let backdropEl: HTMLDivElement;let query = "";const dispatch = createEventDispatcher<{ modelSelected: string; close: void }>();14 unmodified lines}}$: featuredModels = models.filter(m =>query? FEATUED_MODELS_IDS.includes(m.id) && m.id.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim()): FEATUED_MODELS_IDS.includes(m.id));$: otherModels = models.filter(m =>query? !FEATUED_MODELS_IDS.includes(m.id) && m.id.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim()): !FEATUED_MODELS_IDS.includes(m.id));</script><svelte:window on:keydown={handleKeydown} />11 unmodified linesautofocusclass="flex h-10 w-full rounded-md bg-transparent py-3 text-sm placeholder-gray-400 outline-none"placeholder="Search models ..."bind:value={query}/></div><div class="max-h-[300px] overflow-y-auto overflow-x-hidden">
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte+12-3