Khrisna commited on
Commit
a1c6dd2
·
1 Parent(s): e274b1f

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -351,7 +351,7 @@ async function check_nsfw(buffer) {
351
  values[i * numChannels + c] = image.data[i * 4 + c]
352
 
353
  return tf.tensor3d(values, [image.height, image.width, numChannels], 'int32')
354
- },3)
355
  const image = await convert(buffer)
356
  const predictions = await model.classify(image)
357
  image.dispose();
 
351
  values[i * numChannels + c] = image.data[i * 4 + c]
352
 
353
  return tf.tensor3d(values, [image.height, image.width, numChannels], 'int32')
354
+ }
355
  const image = await convert(buffer)
356
  const predictions = await model.classify(image)
357
  image.dispose();