yasserrmd commited on
Commit
dc5ce47
·
verified ·
1 Parent(s): 2106607

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +5 -0
static/index.html CHANGED
@@ -265,6 +265,11 @@
265
  }
266
 
267
  if (data.complete) {
 
 
 
 
 
268
  // Streaming complete
269
  typingIndicator.style.display = 'none';
270
  // Reprocess MathJax to render LaTeX expressions
 
265
  }
266
 
267
  if (data.complete) {
268
+ const htmlChunk = marked.parse(resultContent.innerHTML);
269
+
270
+ // Append streaming chunks as HTML
271
+ resultContent.innerHTML = htmlChunk;
272
+
273
  // Streaming complete
274
  typingIndicator.style.display = 'none';
275
  // Reprocess MathJax to render LaTeX expressions