Spaces:
Runtime error
Runtime error
wip
Browse filesFiles changed (2)
4 unmodified lines5678910111213138 unmodified lines152153154155156157158118 unmodified lines2772782792802812822832842852862872882894 unmodified lineshandleNonStreamingResponse,isSystemPromptSupported} from './inferencePlaygroundUtils';import PlaygroundOptions from './InferencePlaygroundGenerationConfig.svelte';import PlaygroundTokenModal from './InferencePlaygroundHFTokenModal.svelte';import PlaygroundModelSelector from './InferencePlaygroundModelSelector.svelte';import ModelPickerModal from './InferencePlaygroundModelPickerModal.svelte';import Conversation from './InferencePlaygroundConversation.svelte';import { onDestroy } from 'svelte';138 unmodified lines</script>{#if showTokenModal}<PlaygroundTokenModalon:close={() => (showTokenModal = false)}on:submit={(e) => {const formData = new FormData(e.target);118 unmodified lines<divclass="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{models}bind:conversationon:click={() => (showModelPickerModal = open)}/><PlaygroundOptions 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"4 unmodified lines5678910111213138 unmodified lines152153154155156157158118 unmodified lines2772782792802812822832842852862872882894 unmodified lineshandleNonStreamingResponse,isSystemPromptSupported} from './inferencePlaygroundUtils';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}<HFTokenModalon:close={() => (showTokenModal = false)}on:submit={(e) => {const formData = new FormData(e.target);118 unmodified lines<divclass="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"><ModelSelector{models}bind:conversationon:click={() => (showModelPickerModal = open)}/><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 lines456789103 unmodified linesexport 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`;3 unmodified lines4567893 unmodified linesexport let models: ModelEntryWithTokenizer[] = [];export let conversation: Conversation;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