mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-22 08:51:01 +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:
|
def get_wshiper(*, opts) -> WhisperStreamingTranscriber:
|
||||||
config = WhisperConfig(
|
config = WhisperConfig(
|
||||||
model_name=opts.model,
|
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,
|
device=opts.device,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue