Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -379,7 +379,7 @@ async function waifu2x(image, formats) {
|
|
| 379 |
formData.append("denoise", format)
|
| 380 |
formData.append("scale", "true")
|
| 381 |
formData.append("file", image, {
|
| 382 |
-
filename: "images_" + random_numbers.toString().padStart(3, '0') + ".
|
| 383 |
contentType: "image/jpeg"
|
| 384 |
})
|
| 385 |
|
|
@@ -405,7 +405,7 @@ async function waifu2x(image, formats) {
|
|
| 405 |
}
|
| 406 |
})
|
| 407 |
|
| 408 |
-
if(
|
| 409 |
|
| 410 |
const images = await axios.request({
|
| 411 |
method: "GET",
|
|
|
|
| 379 |
formData.append("denoise", format)
|
| 380 |
formData.append("scale", "true")
|
| 381 |
formData.append("file", image, {
|
| 382 |
+
filename: "images_" + random_numbers.toString().padStart(3, '0') + ".jpeg",
|
| 383 |
contentType: "image/jpeg"
|
| 384 |
})
|
| 385 |
|
|
|
|
| 405 |
}
|
| 406 |
})
|
| 407 |
|
| 408 |
+
if(ress.data.finished) return "Images Not Supported!!"
|
| 409 |
|
| 410 |
const images = await axios.request({
|
| 411 |
method: "GET",
|