This commit is contained in:
Miki 2024-11-28 12:35:16 +01:00
parent 3244917eff
commit bd9c740fc7
2 changed files with 31 additions and 20 deletions

View file

@ -6,6 +6,11 @@
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
</svelte:head>
<slot />

View file

@ -2,29 +2,35 @@
export let data;
</script>
<h1 style="text-align: center;">GPT Backend</h1>
<h1 class="h1 text-center">GPT Backend</h1>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>IP:Port</th>
<th>Size</th>
<th>Quantization</th>
<th>Status</th>
</tr>
{#each data.containers.models as c}
<table class="table table-hover">
<thead class="table-primary">
<tr>
<td>{c.name}</td>
{#if c.state == 'running'}
<td>{c.ip}:{c.port}</td>
{:else}
<td>{c.ip}</td>
{/if}
<td>{c.details.parameter_size}</td>
<td>{c.details.quantization_level}</td>
<td>{c.state}</td>
<th>Name</th>
<th>IP:Port</th>
<th>Container</th>
<th>Size</th>
<th>Quantization</th>
<th>Status</th>
</tr>
{/each}
</thead>
<tbody class="table-success">
{#each data.containers.models as c}
<tr>
<td>{c.name}</td>
{#if c.state == 'running'}
<td>{c.ip}:{c.port}</td>
{:else}
<td>{c.ip}</td>
{/if}
<td>{c.container}</td>
<td>{c.details.parameter_size}</td>
<td>{c.details.quantization_level}</td>
<td>{c.state}</td>
</tr>
{/each}
</tbody>
</table>
<style>