Spaces:
Runtime error
Runtime error
rm unused
Browse files
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 {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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';
|