Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- 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 |
-
|
| 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 |
|