Files
schisandra-cloud-album-front/src/workers/tfjs/tfjs.worker.ts
2025-01-13 19:30:29 +08:00

12 lines
475 B
TypeScript

self.onmessage = async function (_e: MessageEvent): Promise<void> {
// const {data} = e;
// const {width, height, uint8Array} = data;
// const prediction1 = await animePredictImage(width, height, uint8Array);
// const prediction2 = await animePredictImagePro(width, height, uint8Array);
// if (prediction1 === 'Anime' && (prediction2 === 'Furry' || prediction2 === 'Anime')) {
// self.postMessage({isAnime: true});
// return;
// }
};