addon: remove iostream

pull/443/head
chenqianhe 2 years ago
parent 5897c01e99
commit e25b4c8272

@ -2,7 +2,6 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
#include <cmath> #include <cmath>
#include <iostream>
#include "napi.h" #include "napi.h"
@ -392,9 +391,10 @@ Napi::Object whisper(const Napi::CallbackInfo& info) {
// run model // run model
run(params, result); run(params, result);
std::cout << "RESULT:" << std::endl; fprintf(stderr, "RESULT:\n");
for (auto sentence:result) { for (auto sentence:result) {
std::cout << sentence[0] << " " << sentence[1] << " " << sentence[2] << std::endl; fprintf(stderr, "t0: %s, t1: %s, content: %s \n",
sentence[0].c_str(), sentence[1].c_str(), sentence[2].c_str());
} }
Napi::Object res = Napi::Array::New(env, result.size()); Napi::Object res = Napi::Array::New(env, result.size());

Loading…
Cancel
Save