From c77053728289b876705f73b8d86550e14a6f1654 Mon Sep 17 00:00:00 2001 From: Akshat2512 Date: Thu, 28 Nov 2024 17:58:27 +0530 Subject: [PATCH] commit --- backend/speech_proccessing.py | 4 ++-- static/script.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 42d11f0..80451a2 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) };