Skip to content

Commit

Permalink
fix: whisper language choice, test=asr (#2828)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxumol authored Jan 12, 2023
1 parent ad40daf commit a99244d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlespeech/s2t/models/whisper/whipser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a99244d

Please sign in to comment.