victor HF staff commited on
Commit
1cb6f6c
1 Parent(s): 3dbff01
src/lib/components/Playground/Playground.svelte CHANGED
@@ -1,9 +1,11 @@
1
  <script lang="ts">
2
- import { HfInference } from '@huggingface/inference';
3
- import type { ChatCompletionStreamOutput, ChatCompletionOutput } from '@huggingface/inference';
4
-
5
  import PlaygroundCode from './PlaygroundCode.svelte';
6
- import { createHfInference, prepareRequestMessages, handleStreamingResponse, handleNonStreamingResponse } from './playgroundUtils';
 
 
 
 
 
7
  import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
8
  import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
9
  import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';
 
1
  <script lang="ts">
 
 
 
2
  import PlaygroundCode from './PlaygroundCode.svelte';
3
+ import {
4
+ createHfInference,
5
+ prepareRequestMessages,
6
+ handleStreamingResponse,
7
+ handleNonStreamingResponse
8
+ } from './playgroundUtils';
9
  import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
10
  import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
11
  import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';