Commit bb2563f1 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

feat: display model size

parent 74da8ebf
...@@ -45,7 +45,10 @@ ...@@ -45,7 +45,10 @@
{#if model.name === 'hr'} {#if model.name === 'hr'}
<hr /> <hr />
{:else} {:else}
<option value={model.name} class="text-gray-700 text-lg">{model.name}</option> <option value={model.name} class="text-gray-700 text-lg"
>{model.name +
`${model.size ? ` (${(model.size / 1024 ** 3).toFixed(1)}GB)` : ''}`}</option
>
{/if} {/if}
{/each} {/each}
</select> </select>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment