Pārlūkot izejas kodu

refac/fix: WHISPER_LANGUAGE

Timothy Jaeryang Baek 3 nedēļas atpakaļ
vecāks
revīzija
c96252f7fe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      backend/open_webui/routers/audio.py

+ 1 - 1
backend/open_webui/routers/audio.py

@@ -550,7 +550,7 @@ def transcription_handler(request, file_path, metadata):
     metadata = metadata or {}
 
     languages = [
-        metadata.get("language", None) if WHISPER_LANGUAGE == "" else WHISPER_LANGUAGE,
+        metadata.get("language", None) if not WHISPER_LANGUAGE else WHISPER_LANGUAGE,
         None,  # Always fallback to None in case transcription fails
     ]