mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +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) {
|
static async isImageNSFW(model, image, bool = true) {
|
||||||
const dimensions = sizeOf(image);
|
const dimensions = sizeOf(image);
|
||||||
const data = {
|
const data = {
|
||||||
data: new Uint8Array(image),
|
data: image,
|
||||||
width: dimensions.width,
|
width: dimensions.width,
|
||||||
height: dimensions.height
|
height: dimensions.height
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user