fix: whisper language choice, test=asr (#2828)

pull/2831/head
cxumol 2 years ago committed by GitHub
parent ad40dafa85
commit a99244d86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -476,7 +476,7 @@ def transcribe(
decode_options["fp16"] = False
if decode_options.get(
"language", 'None') or decode_options.get("language", None) is None:
"language") == 'None' or decode_options.get("language", None) is None:
if not model.is_multilingual:
decode_options["language"] = "en"
else:

Loading…
Cancel
Save