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

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +3 -2
static/index.html CHANGED
@@ -260,14 +260,15 @@
260
  // Append streaming chunks as HTML
261
  resultContent.innerHTML += htmlChunk;
262
 
263
- // Reprocess MathJax to render LaTeX expressions
264
- MathJax.typesetPromise([resultContent]);
265
 
266
  }
267
 
268
  if (data.complete) {
269
  // Streaming complete
270
  typingIndicator.style.display = 'none';
 
 
271
  socket.close();
272
  }
273
 
 
260
  // Append streaming chunks as HTML
261
  resultContent.innerHTML += htmlChunk;
262
 
263
+
 
264
 
265
  }
266
 
267
  if (data.complete) {
268
  // Streaming complete
269
  typingIndicator.style.display = 'none';
270
+ // Reprocess MathJax to render LaTeX expressions
271
+ MathJax.typesetPromise([resultContent]);
272
  socket.close();
273
  }
274