liuyang commited on
Commit
63a373b
·
1 Parent(s): ba3077f

fix audio param

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -521,12 +521,11 @@ class WhisperTranscriber:
521
  # Transcribe using the selected engine
522
  initial_segments = []
523
  detected_language = language if language else "unknown"
 
 
524
 
525
  if engine == "whisperx":
526
  # Load audio (float32, 16k) once
527
- audio = whisperx.load_audio(audio_path)
528
- print(audio_path)
529
-
530
  # Lazy-load WhisperX model on first use
531
  if model_name not in _whipser_x_transcribe_models:
532
  print(f"Loading WhisperX transcribe model '{model_name}' on GPU...")
 
521
  # Transcribe using the selected engine
522
  initial_segments = []
523
  detected_language = language if language else "unknown"
524
+ audio = whisperx.load_audio(audio_path)
525
+ print(audio_path)
526
 
527
  if engine == "whisperx":
528
  # Load audio (float32, 16k) once
 
 
 
529
  # Lazy-load WhisperX model on first use
530
  if model_name not in _whipser_x_transcribe_models:
531
  print(f"Loading WhisperX transcribe model '{model_name}' on GPU...")