Skip to content

Commit

Permalink
chore: update params
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Sep 20, 2023
1 parent 9321298 commit 6b1cdad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions script/whisper-addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,12 @@ Napi::Value whisper(const Napi::CallbackInfo& info) {
std::string input = whisper_params.Get("fname_inp").As<Napi::String>();
int32_t max_len = whisper_params.Get("max_len").As<Napi::Number>();
bool translate = whisper_params.Get("translate").As<Napi::Boolean>();
bool no_timestamps = whisper_params.Get("no_timestamps").As<Napi::Boolean>();

params.language = language;
params.model = model;
params.fname_inp.emplace_back(input);
params.max_len = max_len;
params.translate = translate;
params.no_timestamps = no_timestamps;

Napi::Function callback = info[1].As<Napi::Function>();
Worker* worker = new Worker(callback, params);
Expand Down

0 comments on commit 6b1cdad

Please sign in to comment.