Khrisna commited on
Commit
e42403f
·
1 Parent(s): a3f43bf

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
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') + ".jpg",
383
  contentType: "image/jpeg"
384
  })
385
 
@@ -405,7 +405,7 @@ async function waifu2x(image, formats) {
405
  }
406
  })
407
 
408
- if(!ress.data.finished) return "Images Not Supported!!"
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",