<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tf...@0.11.6"> </script>
<img id='Cells' src='../static/fig.PNG' alt='BVI Cells'>
<script>
const model = tf.loadModel ("{{ url_for('static', filename='model.json') }}");
var cells = document.getElementById('Cells');
console.log(cells.alt);
document.write(cells);
const img = tf.fromPixels(cells);
const prediction = model.predict(img);
</script>
</head>
<body>
</body><>
--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfjs+uns...@tensorflow.org.
Visit this group at https://groups.google.com/a/tensorflow.org/group/tfjs/.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/6d612bb8-8b35-452d-95b7-8ad6128312e5%40tensorflow.org.
tf.loadModel (...).then(function(model) {
model.predict(...) });
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/CABYDHePvg2Z6itQ35RHo2b1zgWOUKmeY1bqZORxvWaiBh9LNPw%40mail.gmail.com.
Thanks Daniel and Shanqing for the post.