From fd1f1383bd1e0929ca79380213cbaebd3c6af5a9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 23 Mar 2021 22:01:21 -0400 Subject: [PATCH] Fix --- structures/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/Client.js b/structures/Client.js index 2ce91935..5c986418 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -188,7 +188,7 @@ module.exports = class XiaoClient extends CommandoClient { async loadNSFWModel() { const model = await nsfw.load( - url.pathToFileURL(path.resolve(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model'))).href, + path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model'), { type: 'graph' } ); this.nsfwModel = model;