This commit is contained in:
Dragon Fire
2021-03-23 21:52:55 -04:00
parent 4d67124803
commit 7bfcecb161
+1 -1
View File
@@ -188,7 +188,7 @@ module.exports = class XiaoClient extends CommandoClient {
async loadNSFWModel() { async loadNSFWModel() {
const model = await nsfw.load( const model = await nsfw.load(
url.pathToFileURL(path.resolve(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href, url.pathToFileURL(path.resolve(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model'))).href,
{ type: 'graph' } { type: 'graph' }
); );
this.nsfwModel = model; this.nsfwModel = model;