File size: 1,375 Bytes
411fba2
5213b80
86574c0
3138e12
 
781a165
86574c0
 
411fba2
 
f459835
411fba2
 
f459835
411fba2
 
f459835
 
 
411fba2
f459835
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c077f8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script lang="ts">
	import { type ModelEntry } from '@huggingface/hub';
	import { createEventDispatcher } from 'svelte';

	export let compatibleModels: ModelEntry[] = [];
	export let disabled = false;

	const dispatch = createEventDispatcher<{ modelIdxChange: number }>();
</script>

<div class="flex flex-col gap-2">
	<label
		for="countries"
		class="flex items-baseline text-sm font-medium text-gray-900 dark:text-white"
		>Models<span class="ml-4 font-normal text-gray-400">{compatibleModels.length}</span>
	</label>

	<button
		class="flex items-center gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:bg-gray-700"
	>
		<div class="flex flex-col items-start">
			<div class="flex items-center gap-1 text-sm text-gray-500 dark:text-gray-300">
				<img
					class="size-3 flex-none rounded bg-gray-200 object-cover"
					src="https://cdn-avatars.huggingface.co/v1/production/uploads/646cf8084eefb026fb8fd8bc/oCTqufkdTkjyGodsx1vo1.png"
					alt=""
				/>
				meta-llama
			</div>
			<div>Meta-Llama-3-70B-Instruct</div>
		</div>
		<div class="rounded bg-gray-100">
			<svg
				class="text-xl"
				xmlns="http://www.w3.org/2000/svg"
				width="1em"
				height="1em"
				viewBox="0 0 24 24"
				><path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z" /></svg
			>
		</div>
	</button>
</div>