Fix language in DecodingOptions

This commit is contained in:
Yuta Hayashibe 2022-09-24 09:42:10 +09:00
parent 38006d8257
commit 9cd80ab047

View file

@ -67,7 +67,7 @@ class WhisperStreamingTranscriber:
) -> DecodingOptions: ) -> DecodingOptions:
return DecodingOptions( return DecodingOptions(
task="transcribe", task="transcribe",
language=None, language=self.config.language,
temperature=t, temperature=t,
sample_len=None, sample_len=None,
best_of=best_of, best_of=best_of,