{#each selectedModels as selectedModel, selectedModelIdx}
{$i18n.t('Select a model')}
{#each $models as model} {#if model.name === 'hr'}
{:else}
{model.name + `${model.size ? ` (${(model.size / 1024 ** 3).toFixed(1)}GB)` : ''}`}
{/if} {/each}
{#if selectedModelIdx === 0}
{ selectedModels = [...selectedModels, '']; }} >
{:else}
{ selectedModels.splice(selectedModelIdx, 1); selectedModels = selectedModels; }} >
{/if} {#if selectedModelIdx === 0}
{ await showSettings.set(!$showSettings); }} >
{/if}
{/each}
{$i18n.t('Set as default')}