This commit is contained in:
Dragon Fire
2021-03-22 17:40:47 -04:00
parent 3ea4eb867a
commit 8e5d76436a
+3 -1
View File
@@ -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;
}