Skip to content

Commit

Permalink
added todo for future check
Browse files Browse the repository at this point in the history
  • Loading branch information
ariym committed Nov 18, 2023
1 parent 00b9288 commit 8b79c97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ export default async function downloadModel() {
// windows .cmd version
if(process.platform === 'win32') scriptPath = "download-ggml-model.cmd";

// todo: check if windows or unix to run bat command or .sh command
shell.exec(`${scriptPath} ${modelName}`);

// TODO: add check in case download-ggml-model doesn't return a successful download.
// to prevent continuing to compile; that makes it harder for user to see which script failed.

console.log("[whisper-node] Attempting to compile model...");

// move up directory, run make in whisper.cpp
Expand Down

0 comments on commit 8b79c97

Please sign in to comment.