mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:26:21 +02:00
I don't understand but idfc anymore
This commit is contained in:
@@ -188,8 +188,8 @@ module.exports = class XiaoClient extends CommandoClient {
|
||||
|
||||
async loadNSFWModel() {
|
||||
const model = await nsfw.load(
|
||||
path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model'),
|
||||
{ type: 'graph' }
|
||||
// url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href,
|
||||
// { type: 'graph' }
|
||||
);
|
||||
this.nsfwModel = model;
|
||||
return this.nsfwModel;
|
||||
|
||||
Reference in New Issue
Block a user