Spaces:
Runtime error
Runtime error
search box support dark mode
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte
CHANGED
|
@@ -115,7 +115,7 @@
|
|
| 115 |
{@const [nameSpace, modelName] = model.id.split("/")}
|
| 116 |
<button
|
| 117 |
class="flex w-full cursor-pointer items-center px-2 py-1.5 text-sm {highlightIdx === idx
|
| 118 |
-
? 'highlighted bg-gray-100'
|
| 119 |
: ''}"
|
| 120 |
on:mouseenter={() => highlightRow(idx)}
|
| 121 |
on:click={() => {
|
|
@@ -125,15 +125,15 @@
|
|
| 125 |
>
|
| 126 |
<IconStar classNames="lucide lucide-star mr-2 h-4 w-4 text-yellow-400" />
|
| 127 |
<span class="inline-flex items-center"
|
| 128 |
-
><span class="text-gray-500">{nameSpace}</span><span
|
| 129 |
-
class="text-black"
|
| 130 |
-
></span
|
| 131 |
>
|
| 132 |
</button>
|
| 133 |
{/each}
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
-
<div class="mx-1 h-px bg-gray-200"></div>
|
| 137 |
<div class="p-1">
|
| 138 |
<div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
|
| 139 |
<div>
|
|
@@ -142,7 +142,7 @@
|
|
| 142 |
{@const idx = featuredModels.length + _idx}
|
| 143 |
<button
|
| 144 |
class="flex w-full cursor-pointer items-center px-2 py-1.5 text-sm {highlightIdx === idx
|
| 145 |
-
? 'highlighted bg-gray-100'
|
| 146 |
: ''}"
|
| 147 |
on:mouseenter={() => highlightRow(idx)}
|
| 148 |
on:click={() => {
|
|
@@ -151,9 +151,9 @@
|
|
| 151 |
}}
|
| 152 |
>
|
| 153 |
<span class="inline-flex items-center"
|
| 154 |
-
><span class="text-gray-500">{nameSpace}</span><span
|
| 155 |
-
class="text-black"
|
| 156 |
-
></span
|
| 157 |
>
|
| 158 |
</button>
|
| 159 |
{/each}
|
|
|
|
| 115 |
{@const [nameSpace, modelName] = model.id.split("/")}
|
| 116 |
<button
|
| 117 |
class="flex w-full cursor-pointer items-center px-2 py-1.5 text-sm {highlightIdx === idx
|
| 118 |
+
? 'highlighted bg-gray-100 dark:bg-gray-700'
|
| 119 |
: ''}"
|
| 120 |
on:mouseenter={() => highlightRow(idx)}
|
| 121 |
on:click={() => {
|
|
|
|
| 125 |
>
|
| 126 |
<IconStar classNames="lucide lucide-star mr-2 h-4 w-4 text-yellow-400" />
|
| 127 |
<span class="inline-flex items-center"
|
| 128 |
+
><span class="text-gray-500 dark:text-gray-400">{nameSpace}</span><span
|
| 129 |
+
class="mx-1 text-black dark:text-white">/</span
|
| 130 |
+
><span class="text-black dark:text-white">{modelName}</span></span
|
| 131 |
>
|
| 132 |
</button>
|
| 133 |
{/each}
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
+
<div class="mx-1 h-px bg-gray-200 dark:bg-gray-700"></div>
|
| 137 |
<div class="p-1">
|
| 138 |
<div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
|
| 139 |
<div>
|
|
|
|
| 142 |
{@const idx = featuredModels.length + _idx}
|
| 143 |
<button
|
| 144 |
class="flex w-full cursor-pointer items-center px-2 py-1.5 text-sm {highlightIdx === idx
|
| 145 |
+
? 'highlighted bg-gray-100 dark:bg-gray-700'
|
| 146 |
: ''}"
|
| 147 |
on:mouseenter={() => highlightRow(idx)}
|
| 148 |
on:click={() => {
|
|
|
|
| 151 |
}}
|
| 152 |
>
|
| 153 |
<span class="inline-flex items-center"
|
| 154 |
+
><span class="text-gray-500 dark:text-gray-400">{nameSpace}</span><span
|
| 155 |
+
class="mx-1 text-black dark:text-white">/</span
|
| 156 |
+
><span class="text-black dark:text-white">{modelName}</span></span
|
| 157 |
>
|
| 158 |
</button>
|
| 159 |
{/each}
|