Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -505,8 +505,8 @@ async function upscaleImage(images) {
|
|
| 505 |
});
|
| 506 |
|
| 507 |
const upscaledTensor = await tfjs.node.encodePng(tensor)
|
| 508 |
-
const typedArray = await upscaledTensor.data();
|
| 509 |
-
const arrayBuffer = Buffer.from(
|
| 510 |
|
| 511 |
// dispose the tensors!
|
| 512 |
image.dispose();
|
|
|
|
| 505 |
});
|
| 506 |
|
| 507 |
const upscaledTensor = await tfjs.node.encodePng(tensor)
|
| 508 |
+
//const typedArray = await upscaledTensor.data();
|
| 509 |
+
const arrayBuffer = Buffer.from(upscaledTensor);
|
| 510 |
|
| 511 |
// dispose the tensors!
|
| 512 |
image.dispose();
|