mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
set nsfwjs model directly
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = class Tensorflow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async loadNSFWJS() {
|
async loadNSFWJS() {
|
||||||
const nsfwjs = await nsfw.load();
|
const nsfwjs = await nsfw.load('MobileNetV2');
|
||||||
this.nsfwjs = nsfwjs;
|
this.nsfwjs = nsfwjs;
|
||||||
return this.nsfwjs;
|
return this.nsfwjs;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user