examples : initialize context params properly (#1852)

This commit is contained in:
Georgi Gerganov
2024-02-11 16:39:12 +02:00
parent 02b4c52c12
commit f273e66dc6
10 changed files with 11 additions and 12 deletions

View File

@ -281,7 +281,7 @@ int main(int argc, char ** argv) {
// whisper init
struct whisper_context_params cparams;
struct whisper_context_params cparams = whisper_context_default_params();
cparams.use_gpu = params.use_gpu;
struct whisper_context * ctx_wsp = whisper_init_from_file_with_params(params.model_wsp.c_str(), cparams);