Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -132,7 +132,7 @@ app.post('/api/waifu2x', async (req, res) => {
|
|
| 132 |
url: images,
|
| 133 |
responseType: "arraybuffer"
|
| 134 |
})
|
| 135 |
-
const response = await waifu2x(data_img, format)
|
| 136 |
res.setHeader('Content-Type', 'image/jpg')
|
| 137 |
res.send(response)
|
| 138 |
} else if (images && typeof images == 'string' && isBase64(images)) {
|
|
|
|
| 132 |
url: images,
|
| 133 |
responseType: "arraybuffer"
|
| 134 |
})
|
| 135 |
+
const response = await waifu2x(data_img.data, format)
|
| 136 |
res.setHeader('Content-Type', 'image/jpg')
|
| 137 |
res.send(response)
|
| 138 |
} else if (images && typeof images == 'string' && isBase64(images)) {
|