mangubee Claude commited on
Commit
7bb1d7c
·
1 Parent(s): 92346a5

fix: typo WISPER_MODEL -> WHISPER_MODEL in audio.py

Browse files

Typo caused NameError during Whisper transcription.
Fixed by correcting variable name reference.

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. src/tools/audio.py +1 -1
src/tools/audio.py CHANGED
@@ -123,7 +123,7 @@ def transcribe_audio(file_path: str) -> Dict[str, Any]:
123
  if _MODEL is None:
124
  logger.info(f"Loading Whisper model: {WHISPER_MODEL}")
125
  device = "cuda" if ZERO_GPU_AVAILABLE else "cpu"
126
- _MODEL = whisper.load_model(WISPER_MODEL, device=device)
127
  logger.info(f"Whisper model loaded on {device}")
128
 
129
  # Transcribe audio
 
123
  if _MODEL is None:
124
  logger.info(f"Loading Whisper model: {WHISPER_MODEL}")
125
  device = "cuda" if ZERO_GPU_AVAILABLE else "cpu"
126
+ _MODEL = whisper.load_model(WHISPER_MODEL, device=device)
127
  logger.info(f"Whisper model loaded on {device}")
128
 
129
  # Transcribe audio