From: Georgi Gerganov Date: Sun, 11 Feb 2024 14:39:12 +0000 (+0200) Subject: examples : initialize context params properly (whisper/1852) X-Git-Tag: upstream/0.0.1642~965 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=055b4c298901222b1d4e0e05d9eb8a5fbaf68747;p=pkg%2Fggml%2Fsources%2Fggml examples : initialize context params properly (whisper/1852) --- diff --git a/examples/whisper/main.cpp b/examples/whisper/main.cpp index c92e9e05..6ece0a7a 100644 --- a/examples/whisper/main.cpp +++ b/examples/whisper/main.cpp @@ -890,7 +890,7 @@ int main(int argc, char ** argv) { // whisper init - struct whisper_context_params cparams; + struct whisper_context_params cparams = whisper_context_default_params(); cparams.use_gpu = params.use_gpu; struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams);