commit | 7a966dfeef245bae1835180868b203a14a524273 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Thu Mar 09 12:53:57 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Thu Mar 09 12:53:57 2023 +0000 |
tree | 8116c4004e8296d93dc4c14a99c98a668c52b54e | |
parent | 7416964f4312cadf52a81c61f28c88a924c992ce [diff] [blame] |
Use a local (& better) NSFW model
diff --git a/src/reflex/scanners.ts b/src/reflex/scanners.ts index 8b8d3c8..405e109 100644 --- a/src/reflex/scanners.ts +++ b/src/reflex/scanners.ts
@@ -23,7 +23,7 @@ errored?: boolean; } -const nsfw_model = await nsfwjs.load(); +const nsfw_model = await nsfwjs.load("file://dist/reflex/nsfwjs/example/nsfw_demo/public/model/", { size: 299 }); const clamscanner = await new ClamScan().init({ clamdscan: { socket: config.clamavSocket