Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Nov 9, 2024
2 parents 3156e33 + 09c5e8e commit 9d38c0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,9 @@ async function handleMessage(e) {
}
case "analyse": {
if (!predictWorkers.length) {
generateAlert({type: 'warning',
message: `A previous analysis resulted in an out-of-memory error, it is recommended you reduce the batch size from ${BATCH_SIZE}`
generateAlert({type: 'Error',
message: `The ${STATE.model} model has not loaded. Restart Chirpity to continue. If you see this message repeatedly,
it is likely your computer does not support AVX2 and Chirpity will not run on your system.`
})
UI.postMessage({event: 'analysis-complete', quiet: true});
break;
Expand Down Expand Up @@ -641,8 +642,12 @@ async function spawnListWorker() {
if (message === 'list-model-ready') {
return resolve(worker);
} else if (message === "tfjs-node") {
event.data.available || (STATE.detect.backend = 'webgpu');
UI.postMessage({event: 'tfjs-node', hasNode: event.data.available})
STATE.hasNode = true;
if (!event.data.available) {
STATE.detect.backend = 'webgpu';
STATE.hasNode = false;
}
UI.postMessage({event: 'tfjs-node', hasNode: STATE.hasNode})
}
};

Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ app.whenReady().then(async () => {
});
//Update handling
autoUpdater.autoDownload = false;
autoUpdater.checkForUpdatesAndNotify()
autoUpdater.checkForUpdatesAndNotify().catch(error => console.warn('Error checking for updates', error))
// Allow multiple instances of Chirpity - experimental! This alone doesn't work:
//app.releaseSingleInstanceLock()

Expand Down

0 comments on commit 9d38c0f

Please sign in to comment.