Skip to content

🎥 Make videos programmatically with React

Update install-whisper-cpp.ts

Jonny Burgera67601edde2c
diff --git a/packages/install-whisper-cpp/src/install-whisper-cpp.ts b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
index 068b4c741b..e58d3e26fa 100644
--- a/packages/install-whisper-cpp/src/install-whisper-cpp.ts
+++ b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
@@ -167,12 +167,12 @@ export const installWhisperCpp = async ({
}
if (process.platform === 'darwin' || process.platform === 'linux') {
- installWhisperForUnix({version, to, printOutput, signal});
+ installWhisperForUnix({version, to, printOutput, signal: signal ?? null});
return Promise.resolve({alreadyExisted: false});
}
if (process.platform === 'win32') {
- await installForWindows({version, to, printOutput, signal});
+ await installForWindows({version, to, printOutput, signal: signal ?? null});
return Promise.resolve({alreadyExisted: false});
}