Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat2512 committed Nov 27, 2024
1 parent 1e3b208 commit 755e0c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@
import logging
logger = logging.getLogger("uvicorn")

# from dotenv import load_dotenv # Load environment variables from .env file
from dotenv import load_dotenv # Load environment variables from .env file

load_dotenv()



# load_dotenv()

app = FastAPI()

Expand Down
4 changes: 2 additions & 2 deletions backend/speech_proccessing.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function stopRecording(){
async function connect_ws(user_id){

return new Promise((resolve, reject) => {
const socket = new WebSocket(`wss://${window.location.hostname}:${window.location.port}/ws/`+user_id);
const socket = new WebSocket(`ws://${window.location.hostname}:${window.location.port}/ws/`+user_id);
socket.onopen = function(event) {
resolve(socket)
};
Expand Down

0 comments on commit 755e0c7

Please sign in to comment.