Skip to content

Instantly share code, notes, and snippets.

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')
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