Skip to content

Commit

Permalink
fix(wizard): wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
rishikanthc committed Oct 19, 2024
1 parent 6bc928b commit 531f181
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib/wizardQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ const worker = new Worker(
await job.log(modToDownload)

modToDownload.forEach(async (m, idx) => {
const cmd2 = `sh ${modelPath}/models/download-ggml-model.sh ${m}.en`;
let cmd2;

if (env.DEV_MODE) {
cmd2 = `sh ${modelPath}/models/download-ggml-model.sh ${m}.en`;
} else {
cmd2 = `sh ${modelPath}/models/download-ggml-model.sh ${m}.en /models`;
}

await job.log(`Executing command: ${cmd2}`);
execCommandWithLoggingSync(cmd2, job);
const prg = 50 + (50 * (idx + 1) / modelsToDownload.length); // idx + 1 ensures progress increments
Expand All @@ -163,6 +170,7 @@ const worker = new Worker(
job.log(error)
}


const settt = await pb.collection('settings').getList(1,1);

if (settt && settt.items.length > 0) {
Expand Down

0 comments on commit 531f181

Please sign in to comment.