mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
refac/fix: WHISPER_LANGUAGE
This commit is contained in:
parent
1d83bc15de
commit
c96252f7fe
1 changed files with 1 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ def transcription_handler(request, file_path, metadata):
|
||||||
metadata = metadata or {}
|
metadata = metadata or {}
|
||||||
|
|
||||||
languages = [
|
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
|
None, # Always fallback to None in case transcription fails
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue