From 8e5d76436a01f0c222f7b7d4a5abbd2a2451dcd4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 22 Mar 2021 17:40:47 -0400 Subject: [PATCH] Fix --- structures/Client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/structures/Client.js b/structures/Client.js index 6cea4a98..549a4560 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -187,7 +187,9 @@ module.exports = class XiaoClient extends CommandoClient { } async loadNSFWModel() { - const model = await nsfw.load(url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model'))); + const model = await nsfw.load( + url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model', 'model.json')) + ); this.nsfwModel = model; return this.nsfwModel; }