]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
examples : initialize context params properly (whisper/1852)
authorGeorgi Gerganov <redacted>
Sun, 11 Feb 2024 14:39:12 +0000 (16:39 +0200)
committerGeorgi Gerganov <redacted>
Mon, 12 Feb 2024 07:32:51 +0000 (09:32 +0200)
examples/whisper/main.cpp

index c92e9e05ef04b2d730dc20df55fc830704a02475..6ece0a7ab0385903fed024ae181e02dcc4e5c17d 100644 (file)
@@ -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);