I don't understand but idfc anymore

This commit is contained in:
Dragon Fire
2021-03-23 22:02:43 -04:00
parent fd1f1383bd
commit dde4ca3961
+2 -2
View File
@@ -188,8 +188,8 @@ module.exports = class XiaoClient extends CommandoClient {
async loadNSFWModel() { async loadNSFWModel() {
const model = await nsfw.load( const model = await nsfw.load(
path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model'), // url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href,
{ type: 'graph' } // { type: 'graph' }
); );
this.nsfwModel = model; this.nsfwModel = model;
return this.nsfwModel; return this.nsfwModel;