mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix
This commit is contained in:
@@ -78,11 +78,11 @@ module.exports = class XiaoClient extends CommandClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async loadNSFWModel() {
|
async loadNSFWModel() {
|
||||||
const model = await nsfw.load(
|
const nsfwModel = await nsfw.load(
|
||||||
`${url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href}/`,
|
`${url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href}/`,
|
||||||
{ type: 'graph' }
|
{ type: 'graph' }
|
||||||
);
|
);
|
||||||
this.nsfwModel = model;
|
this.nsfwModel = nsfwModel;
|
||||||
return this.nsfwModel;
|
return this.nsfwModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user