Spaces:
Running
Running
close #113 : fix struct whisper_token_data
Browse files- whisper.cpp +1 -1
- whisper.h +1 -1
whisper.cpp
CHANGED
|
@@ -2209,7 +2209,7 @@ int whisper_decode(struct whisper_context * ctx, const whisper_token * tokens, i
|
|
| 2209 |
return 0;
|
| 2210 |
}
|
| 2211 |
|
| 2212 |
-
whisper_token_data whisper_sample_best(struct whisper_context * ctx) {
|
| 2213 |
const int64_t t_start_sample_us = ggml_time_us();
|
| 2214 |
|
| 2215 |
// TODO: simplify
|
|
|
|
| 2209 |
return 0;
|
| 2210 |
}
|
| 2211 |
|
| 2212 |
+
struct whisper_token_data whisper_sample_best(struct whisper_context * ctx) {
|
| 2213 |
const int64_t t_start_sample_us = ggml_time_us();
|
| 2214 |
|
| 2215 |
// TODO: simplify
|
whisper.h
CHANGED
|
@@ -128,7 +128,7 @@ extern "C" {
|
|
| 128 |
// You can also implement your own sampling method using the whisper_get_probs() function.
|
| 129 |
// whisper_sample_best() returns the token with the highest probability
|
| 130 |
// whisper_sample_timestamp() returns the most probable timestamp token
|
| 131 |
-
WHISPER_API whisper_token_data whisper_sample_best(struct whisper_context * ctx);
|
| 132 |
WHISPER_API whisper_token whisper_sample_timestamp(struct whisper_context * ctx);
|
| 133 |
|
| 134 |
// Return the id of the specified language, returns -1 if not found
|
|
|
|
| 128 |
// You can also implement your own sampling method using the whisper_get_probs() function.
|
| 129 |
// whisper_sample_best() returns the token with the highest probability
|
| 130 |
// whisper_sample_timestamp() returns the most probable timestamp token
|
| 131 |
+
WHISPER_API struct whisper_token_data whisper_sample_best(struct whisper_context * ctx);
|
| 132 |
WHISPER_API whisper_token whisper_sample_timestamp(struct whisper_context * ctx);
|
| 133 |
|
| 134 |
// Return the id of the specified language, returns -1 if not found
|