mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user