Spaces:
Paused
Paused
matthoffner
commited on
Commit
•
d3138f0
1
Parent(s):
b7ec1ef
Update main.py
Browse files
main.py
CHANGED
@@ -70,7 +70,7 @@ async def demo():
|
|
70 |
<script>
|
71 |
var source = new EventSource("https://matthoffner-starchat-alpha.hf.space/stream");
|
72 |
source.onmessage = function(event) {
|
73 |
-
document.getElementById("content").innerHTML
|
74 |
};
|
75 |
</script>
|
76 |
|
|
|
70 |
<script>
|
71 |
var source = new EventSource("https://matthoffner-starchat-alpha.hf.space/stream");
|
72 |
source.onmessage = function(event) {
|
73 |
+
document.getElementById("content").innerHTML = marked.parse(document.getElementById("content").innerHTML + event.data)
|
74 |
};
|
75 |
</script>
|
76 |
|