arnabg95 commited on
Commit
2c92e3b
1 Parent(s): 0066b69

model changed

Browse files
app/__pycache__/main.cpython-310.pyc CHANGED
Binary files a/app/__pycache__/main.cpython-310.pyc and b/app/__pycache__/main.cpython-310.pyc differ
 
app/__pycache__/passing.cpython-310.pyc CHANGED
Binary files a/app/__pycache__/passing.cpython-310.pyc and b/app/__pycache__/passing.cpython-310.pyc differ
 
app/__pycache__/transcriber.cpython-310.pyc CHANGED
Binary files a/app/__pycache__/transcriber.cpython-310.pyc and b/app/__pycache__/transcriber.cpython-310.pyc differ
 
app/passing.py CHANGED
@@ -5,7 +5,7 @@ def normalize_euclidean(euclidean, max_value):
5
  """
6
  return max(0, 100 - (euclidean / max_value) * 100)
7
 
8
- def calculate_passing(sequence, phonetic, cosine, euclidean, passing_threshold=70, euclidean_max=200):
9
  # Normalize sequence and phonetic to 0-100 scale
10
  sequence_normalized = sequence * 100
11
  phonetic_normalized = phonetic * 100
 
5
  """
6
  return max(0, 100 - (euclidean / max_value) * 100)
7
 
8
+ def calculate_passing(sequence, phonetic, cosine, euclidean, passing_threshold=60, euclidean_max=200):
9
  # Normalize sequence and phonetic to 0-100 scale
10
  sequence_normalized = sequence * 100
11
  phonetic_normalized = phonetic * 100
app/routers/V1/voice/__pycache__/voice_router.cpython-310.pyc CHANGED
Binary files a/app/routers/V1/voice/__pycache__/voice_router.cpython-310.pyc and b/app/routers/V1/voice/__pycache__/voice_router.cpython-310.pyc differ
 
app/transcriber.py CHANGED
@@ -6,7 +6,7 @@ from datasets import load_dataset
6
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
7
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
8
 
9
- model_id = "openai/whisper-large-v3"
10
 
11
  model = AutoModelForSpeechSeq2Seq.from_pretrained(
12
  model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
 
6
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
7
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
8
 
9
+ model_id = "MothersTongue/mother_tongue_model"
10
 
11
  model = AutoModelForSpeechSeq2Seq.from_pretrained(
12
  model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True