mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Fix
This commit is contained in:
@@ -187,7 +187,9 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async loadNSFWModel() {
|
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;
|
this.nsfwModel = model;
|
||||||
return this.nsfwModel;
|
return this.nsfwModel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user