Spaces:
Runtime error
Runtime error
wip
Browse filesFiles changed (2)
4 unmodified lines56789108910111213138 unmodified lines152153154155155156157158118 unmodified lines2772782792802802812822832842852862862872882894 unmodified lines handleNonStreamingResponse, isSystemPromptSupported } from './inferencePlaygroundUtils'; import PlaygroundOptions from './InferencePlaygroundGenerationConfig.svelte'; import PlaygroundTokenModal from './InferencePlaygroundHFTokenModal.svelte'; import PlaygroundModelSelector from './InferencePlaygroundModelSelector.svelte'; import GenerationConfig from './InferencePlaygroundGenerationConfig.svelte'; import HFTokenModal from './InferencePlaygroundHFTokenModal.svelte'; import ModelSelector from './InferencePlaygroundModelSelector.svelte'; import ModelPickerModal from './InferencePlaygroundModelPickerModal.svelte'; import Conversation from './InferencePlaygroundConversation.svelte'; import { onDestroy } from 'svelte';138 unmodified lines</script>
{#if showTokenModal} <PlaygroundTokenModal <HFTokenModal on:close={() => (showTokenModal = false)} on:submit={(e) => { const formData = new FormData(e.target);118 unmodified lines <div class="flex flex-1 flex-col gap-6 overflow-y-hidden rounded-xl border border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40" > <PlaygroundModelSelector <ModelSelector {models} bind:conversation on:click={() => (showModelPickerModal = open)} />
<PlaygroundOptions bind:conversation /> <GenerationConfig bind:conversation /> <div class="mt-auto"> <div class="mb-3 flex items-center justify-between gap-2"> <label for="default-range" class="block text-sm font-medium text-gray-900 dark:text-white"3 unmodified lines45677893 unmodified lines
export let models: ModelEntryWithTokenizer[] = []; export let conversation: Conversation; export let disabled = false;
async function getAvatarUrl(orgName: string) { const url = `https://huggingface.co/api/organizations/${orgName}/avatar`;src/lib/components/InferencePlayground/InferencePlayground.svelte+6-6
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte-1