From 94ecb9146a210959a632c77a01f04fb6cca4e94f Mon Sep 17 00:00:00 2001 From: Jhen Date: Fri, 6 Oct 2023 11:00:09 +0800 Subject: [PATCH] node : fix build --- examples/addon.node/addon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/addon.node/addon.cpp b/examples/addon.node/addon.cpp index 414a35f5573..badd5587b54 100644 --- a/examples/addon.node/addon.cpp +++ b/examples/addon.node/addon.cpp @@ -318,7 +318,7 @@ Napi::Value whisper(const Napi::CallbackInfo& info) { std::string language = whisper_params.Get("language").As(); std::string model = whisper_params.Get("model").As(); std::string input = whisper_params.Get("fname_inp").As(); - std::string input = whisper_params.Get("use_gpu").As(); + bool use_gpu = whisper_params.Get("use_gpu").As(); params.language = language; params.model = model;