From: Jo Liss Date: Mon, 18 Mar 2024 15:53:33 +0000 (+0000) Subject: examples : rename --audio-context to --audio-ctx per help text (whisper/1953) X-Git-Tag: upstream/0.0.1642~802 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=42fc1999f6ba224de3118f3560c40bbb1d2ec532;p=pkg%2Fggml%2Fsources%2Fggml examples : rename --audio-context to --audio-ctx per help text (whisper/1953) --- diff --git a/examples/whisper/main.cpp b/examples/whisper/main.cpp index 84db6a0c..50185cc0 100644 --- a/examples/whisper/main.cpp +++ b/examples/whisper/main.cpp @@ -117,7 +117,7 @@ bool whisper_params_parse(int argc, char ** argv, whisper_params & params) { else if (arg == "-ml" || arg == "--max-len") { params.max_len = std::stoi(argv[++i]); } else if (arg == "-bo" || arg == "--best-of") { params.best_of = std::stoi(argv[++i]); } else if (arg == "-bs" || arg == "--beam-size") { params.beam_size = std::stoi(argv[++i]); } - else if (arg == "-ac" || arg == "--audio-context") { params.audio_ctx = std::stoi(argv[++i]); } + else if (arg == "-ac" || arg == "--audio-ctx") { params.audio_ctx = std::stoi(argv[++i]); } else if (arg == "-wt" || arg == "--word-thold") { params.word_thold = std::stof(argv[++i]); } else if (arg == "-et" || arg == "--entropy-thold") { params.entropy_thold = std::stof(argv[++i]); } else if (arg == "-lpt" || arg == "--logprob-thold") { params.logprob_thold = std::stof(argv[++i]); }