Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -247,7 +247,8 @@ async function waifu2x(urls, formats) {
|
|
| 247 |
"Content-Type": "image/jpg",
|
| 248 |
"Referer": "https://waifu2x.pro/",
|
| 249 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
|
| 250 |
-
}
|
|
|
|
| 251 |
})
|
| 252 |
return results.data
|
| 253 |
}
|
|
|
|
| 247 |
"Content-Type": "image/jpg",
|
| 248 |
"Referer": "https://waifu2x.pro/",
|
| 249 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
|
| 250 |
+
},
|
| 251 |
+
responseType: "arraybuffer"
|
| 252 |
})
|
| 253 |
return results.data
|
| 254 |
}
|