david commited on
Commit
138d976
·
1 Parent(s): 0ca36a2

change port

Browse files
Files changed (2) hide show
  1. frontend/index2.html +1 -1
  2. 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:9090/ws?from=zh&to=en";
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=9090)
 
67
 
68
  freeze_support()
69
  import uvicorn
70
+ uvicorn.run(app, host="0.0.0.0", port=9191)