Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -424,7 +424,7 @@ async function processImage(image, denoise, scale, format, type) {
|
|
424 |
Referer: "https://waifu2x.pro/",
|
425 |
Origin: "https://waifu2x.pro",
|
426 |
"User-Agent":
|
427 |
-
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
428 |
},
|
429 |
});
|
430 |
|
@@ -440,7 +440,7 @@ async function processImage(image, denoise, scale, format, type) {
|
|
440 |
"Content-Type": "image/jpg",
|
441 |
Referer: "https://waifu2x.pro/",
|
442 |
"User-Agent":
|
443 |
-
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
444 |
},
|
445 |
responseType: "arraybuffer",
|
446 |
});
|
|
|
424 |
Referer: "https://waifu2x.pro/",
|
425 |
Origin: "https://waifu2x.pro",
|
426 |
"User-Agent":
|
427 |
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
428 |
},
|
429 |
});
|
430 |
|
|
|
440 |
"Content-Type": "image/jpg",
|
441 |
Referer: "https://waifu2x.pro/",
|
442 |
"User-Agent":
|
443 |
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
444 |
},
|
445 |
responseType: "arraybuffer",
|
446 |
});
|