Spaces:
Runtime error
Runtime error
Implemented streaming message functionality and declared 'out' variable in Playground component.
Browse files61 unmodified lines62636465666761 unmodified linesstreamingMessage = { role: 'assistant', content: '' };messages = [...messages, streamingMessage];try {const hf = new HfInference(hfToken);61 unmodified lines626364656667686961 unmodified linesstreamingMessage = { role: 'assistant', content: '' };messages = [...messages, streamingMessage];let out = ''; // Declare the 'out' variabletry {const hf = new HfInference(hfToken);
src/lib/components/Playground/Playground.svelte+2