Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -13,7 +13,7 @@ const fileType = require("file-type")
|
|
| 13 |
//const { BingChat } = (await import("bing-chat")).default
|
| 14 |
|
| 15 |
const { insta_iwaId, insta_iwaIdUrl, insta_iwa, insta_iwaTag } = require("./lib/instagram.js")
|
| 16 |
-
const {
|
| 17 |
const apikey = "@SadTeam77"
|
| 18 |
|
| 19 |
const app = express()
|
|
@@ -192,7 +192,7 @@ app.post('/api/nsfw-check', async (req, res) => {
|
|
| 192 |
})
|
| 193 |
}
|
| 194 |
if (type.ext == "webp") {
|
| 195 |
-
let converting = await
|
| 196 |
let response = await check_nsfw(converting)
|
| 197 |
res.json({
|
| 198 |
status: "ok",
|
|
|
|
| 13 |
//const { BingChat } = (await import("bing-chat")).default
|
| 14 |
|
| 15 |
const { insta_iwaId, insta_iwaIdUrl, insta_iwa, insta_iwaTag } = require("./lib/instagram.js")
|
| 16 |
+
const { allToJpg } = require("./lib/convertFormat.js")
|
| 17 |
const apikey = "@SadTeam77"
|
| 18 |
|
| 19 |
const app = express()
|
|
|
|
| 192 |
})
|
| 193 |
}
|
| 194 |
if (type.ext == "webp") {
|
| 195 |
+
let converting = await allToJpg(img)
|
| 196 |
let response = await check_nsfw(converting)
|
| 197 |
res.json({
|
| 198 |
status: "ok",
|