Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/// Loading the model.
public async ngOnInit(): Promise<void> {
this.title = 'Loading model, please wait...';
this.model = await tf.loadLayersModel('http://localhost:3000/model.json')
console.log(this.model.summary());
this.title = 'Model Trained! Write down digits!';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment