Khrisna commited on
Commit
a68658b
·
verified ·
1 Parent(s): 68b288d

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
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(typedArray);
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();