Spaces:
Sleeping
Sleeping
sandrohanea
Sandro Hanea
commited on
fixed language auto-detection for state provided processing (#627)
Browse files- whisper.cpp +1 -1
whisper.cpp
CHANGED
|
@@ -2855,7 +2855,7 @@ int whisper_lang_auto_detect_with_state(
|
|
| 2855 |
}
|
| 2856 |
|
| 2857 |
// run the encoder
|
| 2858 |
-
if (
|
| 2859 |
fprintf(stderr, "%s: failed to encode\n", __func__);
|
| 2860 |
return -6;
|
| 2861 |
}
|
|
|
|
| 2855 |
}
|
| 2856 |
|
| 2857 |
// run the encoder
|
| 2858 |
+
if (whisper_encode_with_state(ctx, state, seek, n_threads) != 0) {
|
| 2859 |
fprintf(stderr, "%s: failed to encode\n", __func__);
|
| 2860 |
return -6;
|
| 2861 |
}
|