Spaces:
Running
Running
jianghuyihei
commited on
Commit
•
63e37b1
1
Parent(s):
ea8d6dc
fix
Browse files- __pycache__/app.cpython-310.pyc +0 -0
- app.py +3 -2
__pycache__/app.cpython-310.pyc
CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -12,7 +12,8 @@ import logging
|
|
12 |
from queue import Queue
|
13 |
import json
|
14 |
import uuid
|
15 |
-
|
|
|
16 |
|
17 |
lock = threading.Lock()
|
18 |
app = FastAPI()
|
@@ -349,7 +350,7 @@ html_template = """
|
|
349 |
{{ script}}
|
350 |
</script>
|
351 |
<script>
|
352 |
-
const socket = new WebSocket(
|
353 |
|
354 |
socket.addEventListener('open', function (event) {
|
355 |
const userId = document.getElementById("user_id").value;
|
|
|
12 |
from queue import Queue
|
13 |
import json
|
14 |
import uuid
|
15 |
+
import yaml
|
16 |
+
import os
|
17 |
|
18 |
lock = threading.Lock()
|
19 |
app = FastAPI()
|
|
|
350 |
{{ script}}
|
351 |
</script>
|
352 |
<script>
|
353 |
+
const socket = new WebSocket('wss://damo-nlp-sg-coi-agent.hg.space/ws');
|
354 |
|
355 |
socket.addEventListener('open', function (event) {
|
356 |
const userId = document.getElementById("user_id").value;
|