From: Georgi Gerganov Date: Tue, 4 Jul 2023 17:27:19 +0000 (+0300) Subject: whisper : fix wrong variable name from previous commit X-Git-Tag: upstream/0.0.1642~1350 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b98cd8689f74ed69432323ef5a15369d96086ae1;p=pkg%2Fggml%2Fsources%2Fggml whisper : fix wrong variable name from previous commit --- diff --git a/examples/whisper/whisper.cpp b/examples/whisper/whisper.cpp index 8b0f1f60..38187457 100644 --- a/examples/whisper/whisper.cpp +++ b/examples/whisper/whisper.cpp @@ -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__);