Hosted model doesn't work either, guess it's just broken

This commit is contained in:
Dragon Fire
2021-03-23 22:04:04 -04:00
parent dde4ca3961
commit 10e379cc2a
+2 -2
View File
@@ -188,8 +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')).href,
// { type: 'graph' }
url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href,
{ type: 'graph' }
);
this.nsfwModel = model;
return this.nsfwModel;