style
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte
CHANGED
@@ -293,17 +293,17 @@ print(output.choices[0].message)`,
|
|
293 |
</div>
|
294 |
|
295 |
{#each snippetsByLanguage[selectedLanguage] as { label, code, language, needsToken }}
|
296 |
-
<div class="flex items-center justify-between px-2 pb-4 pt-6
|
297 |
<h2 class="font-semibold">{label}</h2>
|
298 |
<div class="flex items-center gap-x-4">
|
299 |
{#if needsToken && hfToken}
|
300 |
-
<label class="flex items-center gap-x-1.5">
|
301 |
<input type="checkbox" bind:checked={showToken} />
|
302 |
-
<p class="leading-none">
|
303 |
</label>
|
304 |
{/if}
|
305 |
<button
|
306 |
-
class="flex items-center gap-x-1.5 rounded-md bg-
|
307 |
on:click={e => {
|
308 |
const el = e.currentTarget;
|
309 |
el.classList.add("text-green-500");
|
|
|
293 |
</div>
|
294 |
|
295 |
{#each snippetsByLanguage[selectedLanguage] as { label, code, language, needsToken }}
|
296 |
+
<div class="flex items-center justify-between px-2 pb-4 pt-6 ">
|
297 |
<h2 class="font-semibold">{label}</h2>
|
298 |
<div class="flex items-center gap-x-4">
|
299 |
{#if needsToken && hfToken}
|
300 |
+
<label class="flex items-center gap-x-1.5 text-sm">
|
301 |
<input type="checkbox" bind:checked={showToken} />
|
302 |
+
<p class="leading-none">Show token</p>
|
303 |
</label>
|
304 |
{/if}
|
305 |
<button
|
306 |
+
class="flex items-center gap-x-1.5 rounded-md bg-white border shadow-sm px-1.5 py-0.5 text-sm transition dark:bg-gray-950/80"
|
307 |
on:click={e => {
|
308 |
const el = e.currentTarget;
|
309 |
el.classList.add("text-green-500");
|