mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 10:21:00 +00:00
Fix a bug
This commit is contained in:
parent
612f88f386
commit
bc9d9096b4
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue