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