karlhajal commited on
Commit
674ea2f
·
verified ·
1 Parent(s): 7e76fe0

Load PronunciationChecker only once at startup

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -20,9 +20,6 @@ def check_pronunciation(reference_audio, input_audio):
20
  timing_results.append((step, datetime.now()))
21
 
22
  log_timing("Start")
23
-
24
- pronunciation_checker = PronunciationChecker("microsoft/wavlm-large")
25
- log_timing("Model Loading")
26
 
27
  # Extract features from both audio files
28
  layer = 6
 
20
  timing_results.append((step, datetime.now()))
21
 
22
  log_timing("Start")
 
 
 
23
 
24
  # Extract features from both audio files
25
  layer = 6