09a3d3ab17
Copilot Setup Steps / copilot-setup-steps (push) Failing after 2s
Python check requirements.txt / check-requirements (push) Has been cancelled
Python Type-Check / python type-check (push) Has been cancelled
Update Operations Documentation / update-ops-docs (push) Has been cancelled
Check Pre-Tokenizer Hashes / pre-tokenizer-hashes (push) Has been cancelled
37 lines
820 B
Svelte
37 lines
820 B
Svelte
<script lang="ts">
|
|
import { Eye, Mic, Video } from '@lucide/svelte';
|
|
import { ModelModality } from '$lib/enums';
|
|
|
|
interface Props {
|
|
modalities: ModelModality[];
|
|
class?: string;
|
|
}
|
|
|
|
let { modalities, class: className = '' }: Props = $props();
|
|
</script>
|
|
|
|
{#each modalities as modality (modality)}
|
|
{#if modality === ModelModality.VISION || modality === ModelModality.AUDIO || modality === ModelModality.VIDEO}
|
|
<span
|
|
class={[
|
|
'inline-flex items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs font-medium',
|
|
className
|
|
]}
|
|
>
|
|
{#if modality === ModelModality.VISION}
|
|
<Eye class="h-3 w-3" />
|
|
|
|
Vision (Image)
|
|
{:else if modality === ModelModality.VIDEO}
|
|
<Video class="h-3 w-3" />
|
|
|
|
Vision (Video)
|
|
{:else}
|
|
<Mic class="h-3 w-3" />
|
|
|
|
Audio
|
|
{/if}
|
|
</span>
|
|
{/if}
|
|
{/each}
|