david
commited on
Commit
·
138d976
1
Parent(s):
0ca36a2
change port
Browse files- frontend/index2.html +1 -1
- main.py +1 -1
frontend/index2.html
CHANGED
|
@@ -126,7 +126,7 @@ function addTranslation(result) {
|
|
| 126 |
const source = audioContext.createMediaStreamSource(stream);
|
| 127 |
const processor = audioContext.createScriptProcessor(4096, 1, 1);
|
| 128 |
|
| 129 |
-
const wsUrl = "ws://localhost:
|
| 130 |
ws = new WebSocket(wsUrl);
|
| 131 |
|
| 132 |
ws.binaryType = "arraybuffer";
|
|
|
|
| 126 |
const source = audioContext.createMediaStreamSource(stream);
|
| 127 |
const processor = audioContext.createScriptProcessor(4096, 1, 1);
|
| 128 |
|
| 129 |
+
const wsUrl = "ws://localhost:9191/ws?from=zh&to=en";
|
| 130 |
ws = new WebSocket(wsUrl);
|
| 131 |
|
| 132 |
ws.binaryType = "arraybuffer";
|
main.py
CHANGED
|
@@ -67,4 +67,4 @@ if __name__ == '__main__':
|
|
| 67 |
|
| 68 |
freeze_support()
|
| 69 |
import uvicorn
|
| 70 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 67 |
|
| 68 |
freeze_support()
|
| 69 |
import uvicorn
|
| 70 |
+
uvicorn.run(app, host="0.0.0.0", port=9191)
|