Spaces:
Running
Running
Load PronunciationChecker only once at startup
Browse files
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
|