Fix a bug

This commit is contained in:
Yuta Hayashibe 2022-10-06 20:56:41 +09:00
parent 612f88f386
commit bc9d9096b4

View file

@ -206,7 +206,7 @@ def get_opts() -> argparse.Namespace:
def get_wshiper(*, opts) -> WhisperStreamingTranscriber:
config = WhisperConfig(
model_name=opts.model,
language=opts.language if opts.language == MULTI_LANGUAGE else None,
language=None if opts.language == MULTI_LANGUAGE else opts.language,
device=opts.device,
)