Skip to content

Commit

Permalink
whisper : fix wrong variable name from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jul 4, 2023
1 parent c2f8d31 commit b98cd86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/whisper/whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down

0 comments on commit b98cd86

Please sign in to comment.