fix: typo WISPER_MODEL -> WHISPER_MODEL in audio.py
Browse filesTypo caused NameError during Whisper transcription.
Fixed by correcting variable name reference.
Co-Authored-By: Claude <noreply@anthropic.com>
- 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(
|
| 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
|