changed the ws url
Browse files- app/main.py +2 -1
app/main.py
CHANGED
@@ -18,7 +18,8 @@ html = """
|
|
18 |
<ul id='messages'>
|
19 |
</ul>
|
20 |
<script>
|
21 |
-
var ws = new WebSocket("ws://localhost:8000/ws");
|
|
|
22 |
ws.onmessage = function(event) {
|
23 |
var messages = document.getElementById('messages')
|
24 |
var message = document.createElement('li')
|
|
|
18 |
<ul id='messages'>
|
19 |
</ul>
|
20 |
<script>
|
21 |
+
// var ws = new WebSocket("ws://localhost:8000/ws");
|
22 |
+
var ws = new WebSocket("ws://huggingface.co/spaces/cahya/websocket/ws");
|
23 |
ws.onmessage = function(event) {
|
24 |
var messages = document.getElementById('messages')
|
25 |
var message = document.createElement('li')
|