Spaces:
Sleeping
Sleeping
format
Browse filesFiles changed (5)
- src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+4-4
- src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte+1-1
- src/lib/components/InferencePlayground/InferencePlaygroundHFTokenModal.svelte+5-6
- src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte+1-1
- tailwind.config.ts+1-1
292 unmodified lines2932942952962972982993003013023033043053063073083096 unmodified lines316317318319320321322292 unmodified lines</div>{#each snippetsByLanguage[selectedLanguage] as { label, code, language, needsToken }}<div class="flex items-center justify-between px-2 pb-4 pt-6 "><h2 class="font-semibold">{label}</h2><div class="flex items-center gap-x-4">{#if needsToken && hfToken}<label class="flex items-center gap-x-1.5 text-sm select-none"><input type="checkbox" bind:checked={showToken} /><p class="leading-none">With token</p></label>{/if}<buttonclass="flex items-center gap-x-2 rounded-md bg-white border dark:border-gray-800 shadow-sm px-1.5 py-0.5 text-sm transition dark:bg-gray-800"on:click={e => {const el = e.currentTarget;el.classList.add("text-green-500");6 unmodified lines}, 400);}}><IconCopyCode classNames="text-xs"/> Copy code</button></div></div>292 unmodified lines2932942952962972982993003013023033043053063073083096 unmodified lines316317318319320321322292 unmodified lines</div>{#each snippetsByLanguage[selectedLanguage] as { label, code, language, needsToken }}<div class="flex items-center justify-between px-2 pb-4 pt-6"><h2 class="font-semibold">{label}</h2><div class="flex items-center gap-x-4">{#if needsToken && hfToken}<label class="flex select-none items-center gap-x-1.5 text-sm"><input type="checkbox" bind:checked={showToken} /><p class="leading-none">With token</p></label>{/if}<buttonclass="flex items-center gap-x-2 rounded-md border bg-white px-1.5 py-0.5 text-sm shadow-sm transition dark:border-gray-800 dark:bg-gray-800"on:click={e => {const el = e.currentTarget;el.classList.add("text-green-500");6 unmodified lines}, 400);}}><IconCopyCode classNames="text-xs" /> Copy code</button></div></div>
48 unmodified lines4950515253545548 unmodified lines{/each}<buttonclass="flex px-3.5 md:px-6 py-6 hover:bg-gray-50 dark:hover:bg-gray-800/50"on:click={() => dispatch("addMessage")}disabled={loading}>48 unmodified lines4950515253545548 unmodified lines{/each}<buttonclass="flex px-3.5 py-6 hover:bg-gray-50 md:px-6 dark:hover:bg-gray-800/50"on:click={() => dispatch("addMessage")}disabled={loading}>
77 unmodified lines787980818283848586878889905 unmodified lines9697989910010110210310410510677 unmodified lines</div><!-- Modal body --><div class="p-4 md:p-5"><p class="text-base leading-relaxed text-gray-800 dark:text-gray-300 mb-5 2xl:text-balance">You need a free Hugging Face token to use this application. <strong class="font-semibold">Make sure you create a token with Inference API permission.</strong><br /> Your token is kept safe by only being used from your browser.</p><div><label for="hf-token" class="mb-3 block text-smd font-medium text-gray-900 dark:text-white ">Hugging Face Token</label><input5 unmodified linesclass="block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"/></div><label class="flex items-center gap-x-1.5 text-gray-900 dark:text-gray-200 mt-4"><input type="checkbox" bind:checked={storeLocallyHfToken} /><p class="leading-none text-sm">Save to local storage for future use</label></div><!-- Modal footer -->77 unmodified lines787980818283848586878889905 unmodified lines9697989910010110210310410577 unmodified lines</div><!-- Modal body --><div class="p-4 md:p-5"><p class="mb-5 text-base leading-relaxed text-gray-800 2xl:text-balance dark:text-gray-300">You need a free Hugging Face token to use this application. <strong class="font-semibold">Make sure you create a token with Inference API permission.</strong><br /> Your token is kept safe by only being used from your browser.</p><div><label for="hf-token" class="text-smd mb-3 block font-medium text-gray-900 dark:text-white">Hugging Face Token</label><input5 unmodified linesclass="block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"/></div><label class="mt-4 flex items-center gap-x-1.5 text-gray-900 dark:text-gray-200"><input type="checkbox" bind:checked={storeLocallyHfToken} /><p class="text-sm leading-none">Save to local storage for future use</p></label></div><!-- Modal footer -->
53 unmodified lines5455565758596053 unmodified lines</label><buttonclass="flex items-center justify-between relative gap-6 overflow-hidden whitespace-nowrap hover:brightness-95 dark:hover:brightness-110 rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:border-gray-700 dark:bg-gray-800"on:click={() => (showModelPickerModal = true)}><div class="flex flex-col items-start">53 unmodified lines5455565758596053 unmodified lines</label><buttonclass="relative flex items-center justify-between gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow hover:brightness-95 dark:border-gray-700 dark:bg-gray-800 dark:hover:brightness-110"on:click={() => (showModelPickerModal = true)}><div class="flex flex-col items-start">
2 unmodified lines34567892 unmodified linesexport default {content: ["./src/**/*.{html,js,svelte,ts}"],darkMode: 'selector',theme: {extend: {},},2 unmodified lines34567892 unmodified linesexport default {content: ["./src/**/*.{html,js,svelte,ts}"],darkMode: "selector",theme: {extend: {},},
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+4-4
src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte+1-1
src/lib/components/InferencePlayground/InferencePlaygroundHFTokenModal.svelte+5-6
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte+1-1
tailwind.config.ts+1-1