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