12 lines
475 B
TypeScript
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;
|
|
// }
|
|
};
|