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;