Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -197,7 +197,7 @@ async function acytoo(text, model) {
|
|
197 |
}
|
198 |
async function waifu2x(urls, formats) {
|
199 |
// data
|
200 |
-
let img
|
201 |
let format
|
202 |
if(formats == "Medium") {
|
203 |
format = "1"
|
|
|
197 |
}
|
198 |
async function waifu2x(urls, formats) {
|
199 |
// data
|
200 |
+
let img = await axios.get(urls, { responseType: "arraybuffer"})
|
201 |
let format
|
202 |
if(formats == "Medium") {
|
203 |
format = "1"
|