From ec016f15b2fe3883a22d5cdce75d18bdd4155bb2 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Sat, 24 Sep 2022 13:57:11 +0900 Subject: [PATCH] Sort and uniq temperatures --- whisper_streaming/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whisper_streaming/cli.py b/whisper_streaming/cli.py index 632caef..672ad35 100644 --- a/whisper_streaming/cli.py +++ b/whisper_streaming/cli.py @@ -114,6 +114,7 @@ def main() -> None: opts.beam_size = None if len(opts.temperature) == 0: opts.temperature = [0.0, 0.2, 0.4, 0.6, 0.8, 1.0] + opts.temperature = sorted(set(opts.temperature)) try: opts.mic = int(opts.mic)