✨ complete model integration
This commit is contained in:
11
src/workers/tfjs/tfjs.worker.ts
Normal file
11
src/workers/tfjs/tfjs.worker.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
// }
|
||||
};
|
Reference in New Issue
Block a user