Spaces:
Paused
Paused
Update index.js
Browse files
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 |
-
}
|
| 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();
|