mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@ module.exports = class Util {
|
||||
static async isImageNSFW(model, image, bool = true) {
|
||||
const dimensions = sizeOf(image);
|
||||
const data = {
|
||||
data: new Uint8Array(image),
|
||||
data: image,
|
||||
width: dimensions.width,
|
||||
height: dimensions.height
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user