Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -169,7 +169,7 @@ app.post('/api/upscaler', async (req, res) => {
|
|
169 |
//res.setHeader('Content-Type', 'image/jpg')
|
170 |
res.send(response)
|
171 |
} else if (images && typeof images == 'string' && isBase64(images)) {
|
172 |
-
const response = await processImage(Buffer.from(images, "base64"), denoise, scale,
|
173 |
//res.setHeader('Content-Type', 'image/jpg')
|
174 |
res.send(response)
|
175 |
} else {
|
|
|
169 |
//res.setHeader('Content-Type', 'image/jpg')
|
170 |
res.send(response)
|
171 |
} else if (images && typeof images == 'string' && isBase64(images)) {
|
172 |
+
const response = await processImage(Buffer.from(images, "base64"), denoise, scale, format, type)
|
173 |
//res.setHeader('Content-Type', 'image/jpg')
|
174 |
res.send(response)
|
175 |
} else {
|