This commit is contained in:
Dragon Fire
2021-03-23 22:01:21 -04:00
parent 7bfcecb161
commit fd1f1383bd
+1 -1
View File
@@ -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;