self.onmessage = async function (_e: MessageEvent): Promise { // 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; // } };