]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
whisper : fix wrong variable name from previous commit
authorGeorgi Gerganov <redacted>
Tue, 4 Jul 2023 17:27:19 +0000 (20:27 +0300)
committerGeorgi Gerganov <redacted>
Tue, 4 Jul 2023 18:16:15 +0000 (21:16 +0300)
examples/whisper/whisper.cpp

index 8b0f1f60ab8a7a7316c59dbc4ae3ea9b0a2380a4..381874573ea48a9a7ee307c4e6a00711241be728 100644 (file)
@@ -2777,12 +2777,12 @@ int whisper_ctx_init_openvino_encoder(
         path_cache = cache_dir;
     }
 
-    fprintf(stderr, "%s: loading OpenVINO model from '%s'\n", __func__, path_openvino.c_str());
+    fprintf(stderr, "%s: loading OpenVINO model from '%s'\n", __func__, path_encoder.c_str());
     fprintf(stderr, "%s: first run on a device may take a while ...\n", __func__);
 
-    ctx->state->ctx_openvino = whisper_openvino_init(path_openvino.c_str(), device, path_cache.c_str());
+    ctx->state->ctx_openvino = whisper_openvino_init(path_encoder.c_str(), device, path_cache.c_str());
     if (!ctx->state->ctx_openvino) {
-        fprintf(stderr, "%s: failed to init OpenVINO encoder from '%s'\n", __func__, path_openvino.c_str());
+        fprintf(stderr, "%s: failed to init OpenVINO encoder from '%s'\n", __func__, path_encoder.c_str());
         return 1;
     } else {
         fprintf(stderr, "%s: OpenVINO model loaded\n", __func__);