Spaces:
Running
Running
Update playground.html
Browse files- playground.html +4 -4
playground.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<head>
|
5 |
<meta charset="UTF-8">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
-
<title>
|
8 |
<link
|
9 |
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap"
|
10 |
rel="stylesheet">
|
@@ -554,10 +554,9 @@
|
|
554 |
// Convert \n to <br>
|
555 |
// Properly handle newline characters
|
556 |
content = content.replace(/\\n/g, '<br>'); // Replace escaped newlines (\n) with <br>
|
557 |
-
fullResponse += content; // Append to the full response
|
558 |
|
559 |
// Call appendMessage with the processed content
|
560 |
-
appendMessage(
|
561 |
|
562 |
}
|
563 |
} catch (err) {
|
@@ -596,5 +595,6 @@ comments
|
|
596 |
to
|
597 |
get
|
598 |
to
|
599 |
-
600 lines
|
|
|
600 |
</html>
|
|
|
4 |
<head>
|
5 |
<meta charset="UTF-8">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>Loki.AI Playground</title>
|
8 |
<link
|
9 |
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap"
|
10 |
rel="stylesheet">
|
|
|
554 |
// Convert \n to <br>
|
555 |
// Properly handle newline characters
|
556 |
content = content.replace(/\\n/g, '<br>'); // Replace escaped newlines (\n) with <br>
|
|
|
557 |
|
558 |
// Call appendMessage with the processed content
|
559 |
+
appendMessage(content, 'bot', true);
|
560 |
|
561 |
}
|
562 |
} catch (err) {
|
|
|
595 |
to
|
596 |
get
|
597 |
to
|
598 |
+
600 lines
|
599 |
+
coz why not -->
|
600 |
</html>
|