Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,9 +235,9 @@ def transcribe(audio_file, model_size="base", debug=False, pause_threshold=0.0,
|
|
| 235 |
debug_log.append(f"Audio loaded: {len(audio)/sr:.2f} seconds long at {sr} Hz")
|
| 236 |
|
| 237 |
# If vocal extraction was used, apply advanced normalization
|
| 238 |
-
if vocal_extraction:
|
| 239 |
-
|
| 240 |
-
|
| 241 |
|
| 242 |
# Select the model and set batch size
|
| 243 |
model = models[model_size]
|
|
|
|
| 235 |
debug_log.append(f"Audio loaded: {len(audio)/sr:.2f} seconds long at {sr} Hz")
|
| 236 |
|
| 237 |
# If vocal extraction was used, apply advanced normalization
|
| 238 |
+
#if vocal_extraction:
|
| 239 |
+
# audio = advanced_normalize_audio(audio)
|
| 240 |
+
# debug_log.append("Advanced normalization applied to extracted audio to remove low-amplitude segments.")
|
| 241 |
|
| 242 |
# Select the model and set batch size
|
| 243 |
model = models[model_size]
|