]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
fixed language auto-detection for state provided processing (#627)
authorsandrohanea <redacted>
Wed, 22 Mar 2023 19:47:09 +0000 (20:47 +0100)
committerGitHub <redacted>
Wed, 22 Mar 2023 19:47:09 +0000 (21:47 +0200)
Co-authored-by: Sandro Hanea <redacted>
whisper.cpp

index 4d0245b6bbeb38ad80d8389f3951c8f4bdab02a3..fbb9e842ce85649c54872f6ff9ce183b2a2b4e3b 100644 (file)
@@ -2855,7 +2855,7 @@ int whisper_lang_auto_detect_with_state(
     }
 
     // run the encoder
-    if (whisper_encode(ctx, seek, n_threads) != 0) {
+    if (whisper_encode_with_state(ctx, state, seek, n_threads) != 0) {
         fprintf(stderr, "%s: failed to encode\n", __func__);
         return -6;
     }