mishig HF staff commited on
Commit
ce34835
1 Parent(s): e90b19e

Replace `process.write` with `console.log` (#22)

Browse files
src/lib/components/CodeSnippets.svelte CHANGED
@@ -75,7 +75,8 @@ for await (const chunk of inference.chatCompletionStream({
75
  if (chunk.choices && chunk.choices.length > 0) {
76
  const newContent = chunk.choices[0].delta.content;
77
  out += newContent;
78
- process.stdout.write(newContent);
 
79
  }
80
  }`
81
  });
 
75
  if (chunk.choices && chunk.choices.length > 0) {
76
  const newContent = chunk.choices[0].delta.content;
77
  out += newContent;
78
+ console.clear();
79
+ console.log(out);
80
  }
81
  }`
82
  });