Spaces:
Paused
Paused
matthoffner
commited on
Commit
·
49b7702
1
Parent(s):
b0aa891
Update main.py
Browse files
main.py
CHANGED
@@ -46,7 +46,7 @@ async def demo():
|
|
46 |
<script>
|
47 |
var source = new EventSource("https://matthoffner-starchat-alpha.hf.space/stream");
|
48 |
source.onmessage = function(event) {
|
49 |
-
document.getElementById("content").innerHTML +=
|
50 |
};
|
51 |
</script>
|
52 |
|
|
|
46 |
<script>
|
47 |
var source = new EventSource("https://matthoffner-starchat-alpha.hf.space/stream");
|
48 |
source.onmessage = function(event) {
|
49 |
+
marked.parse(document.getElementById("content").innerHTML += event.data)
|
50 |
};
|
51 |
</script>
|
52 |
|