Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -183,7 +183,7 @@ app.post('/api/nsfw-check', async (req, res) => {
|
|
183 |
})
|
184 |
} else if (images && typeof images == 'string' && isBase64(images)) {
|
185 |
const img = Buffer.from(images, "base64")
|
186 |
-
const type = await fileType.
|
187 |
if (type.ext == "jpg") {
|
188 |
let response = await check_nsfw(img)
|
189 |
res.json({
|
|
|
183 |
})
|
184 |
} else if (images && typeof images == 'string' && isBase64(images)) {
|
185 |
const img = Buffer.from(images, "base64")
|
186 |
+
const type = await fileType.fromBuffer(img)
|
187 |
if (type.ext == "jpg") {
|
188 |
let response = await check_nsfw(img)
|
189 |
res.json({
|