mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Update audio.py - fix FORMAT error
Fix FORMAT error
This commit is contained in:
parent
0613563644
commit
51758c429b
1 changed files with 6 additions and 1 deletions
|
|
@ -561,7 +561,12 @@ def transcription_handler(request, file_path, metadata):
|
|||
file_path,
|
||||
beam_size=5,
|
||||
vad_filter=request.app.state.config.WHISPER_VAD_FILTER,
|
||||
language=metadata.get("language",None) if WHISPER_LANGUAGE=="" else WHISPER_LANGUAGE,
|
||||
language=(
|
||||
metadata.get("language", None)
|
||||
if WHISPER_LANGUAGE == ""
|
||||
else WHISPER_LANGUAGE
|
||||
),
|
||||
)
|
||||
)
|
||||
log.info(
|
||||
"Detected language '%s' with probability %f"
|
||||
|
|
|
|||
Loading…
Reference in a new issue