diff --git a/backend/speech_proccessing.py b/backend/speech_proccessing.py index ff2868d..ceb6086 100644 --- a/backend/speech_proccessing.py +++ b/backend/speech_proccessing.py @@ -1,10 +1,10 @@ # import wave import numpy as np -import tensorflow.lite as tflite +# import tensorflow.lite as tflite import zipfile import time -# import tflite_runtime.interpreter as tflite +import tflite_runtime.interpreter as tflite import logging diff --git a/static/script.js b/static/script.js index 1377815..b98df2c 100644 --- a/static/script.js +++ b/static/script.js @@ -106,7 +106,7 @@ function stopRecording(){ async function connect_ws(user_id){ return new Promise((resolve, reject) => { - const socket = new WebSocket(`ws://${window.location.hostname}:${window.location.port}/ws/`+user_id); + const socket = new WebSocket(`wss://${window.location.hostname}:${window.location.port}/ws/`+user_id); socket.onopen = function(event) { resolve(socket) };