Created
August 8, 2018 23:23
-
-
Save zaidalyafeai/8b9c19dccbdfa349f1858d9508c27230 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script = '\ | |
<script>\n\ | |
async function loadModel(){ \n\ | |
model = await tf.loadModel(\'web_model/model.json\') \n\ | |
y = model.predict(tf.zeros([1,2])) \n\ | |
document.getElementById(\'out\').innerHTML = y.dataSync()[0] \n\ | |
} \n\ | |
loadModel() \n\ | |
</script>\n\ | |
</head> \n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment