From ebafccd9117704f504b3a480602808bccab0f289 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 22 Mar 2021 17:53:04 -0400 Subject: [PATCH] Graph model? --- structures/Client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/structures/Client.js b/structures/Client.js index 549a4560..a458c07a 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -188,7 +188,8 @@ module.exports = class XiaoClient extends CommandoClient { async loadNSFWModel() { const model = await nsfw.load( - url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model', 'model.json')) + url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model', 'model.json')), + { type: 'graph' } ); this.nsfwModel = model; return this.nsfwModel;