Spaces:
Runtime error
Runtime error
style
Browse filesFiles changed (3)
296 unmodified lines2972982993003013023033043053063073083096 unmodified lines316317318319320321322296 unmodified lines<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"><input type="checkbox" bind:checked={showToken} /><p class="leading-none">Show token</p></label>{/if}<buttonclass="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"on:click={e => {const el = e.currentTarget;el.classList.add("text-green-500");6 unmodified lines}, 400);}}><IconCopyCode /> Copy code</button></div></div>296 unmodified lines2972982993003013023033043053063073083096 unmodified lines316317318319320321322296 unmodified lines<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>
48 unmodified lines4950515253545548 unmodified lines{/each}<buttonclass="flex 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 md:px-6 py-6 hover:bg-gray-50 dark:hover:bg-gray-800/50"on:click={() => dispatch("addMessage")}disabled={loading}>
77 unmodified lines78798081828384858619 unmodified lines10610710810911011111277 unmodified lines</div><!-- Modal body --><div class="p-4 md:p-5"><p class="text-base leading-relaxed text-gray-800 2xl:text-balance dark:text-gray-400 mb-5">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>19 unmodified lines<!-- Modal footer --><div class="flex items-center justify-between rounded-b border-t border-gray-200 p-4 md:p-5 dark:border-gray-600"><ahref="https://huggingface.co/settings/tokens/new?globalPermissions=inference.serverless.write&tokenType=fineGrained"tabindex="-1"target="_blank"class="rounded-lg border border-gray-200 bg-white px-5 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"77 unmodified lines78798081828384858619 unmodified lines10610710810911011111277 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">You need a free Hugging Face token to use this application. <strong class="font-semibold">Make sure you create a token with Gated models access and Inference API permissions.</strong><br /> Your token is kept safe by only being used from your browser.</p><div>19 unmodified lines<!-- Modal footer --><div class="flex items-center justify-between rounded-b border-t border-gray-200 p-4 md:p-5 dark:border-gray-600"><ahref="https://huggingface.co/settings/tokens/new?globalPermissions=inference.serverless.write&canReadGatedRepos=true&tokenType=fineGrained"tabindex="-1"target="_blank"class="rounded-lg border border-gray-200 bg-white px-5 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+4-4
src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte+1-1
src/lib/components/InferencePlayground/InferencePlaygroundHFTokenModal.svelte+3-3