From 5a76ac764f3dceaa7ef108840fbdae593f931dea Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 22 Mar 2021 17:25:21 -0400 Subject: [PATCH] Fix --- util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Util.js b/util/Util.js index fbc22fef..44e5f49f 100644 --- a/util/Util.js +++ b/util/Util.js @@ -217,7 +217,7 @@ module.exports = class Util { return str; } - static isImageNSFW(model, image, bool = true) { + static async isImageNSFW(model, image, bool = true) { const img = await tf.node.decodeImage(new Uint8Array(image), 3); const predictions = model.classify(image, 1); img.dispose();