/python_to_web

Training a neural network using TensorFlow and Python, then running it in the browser using TensorFlow.js.

Primary LanguageJupyter Notebook

python_to_web

Open In Colab


This notebook contains an example of training a neural network using TensorFlow and Python, then running it in the browser using TensorFlow.js.

This notebook provides example code to do the following:

  1. Train a neural network using Python to classify flowers
  2. Save the model to disk
  3. Convert the model to TensorFlow.js format
  4. Create a webpage using a minimum amount of HTML and JavaScript to run the model
  5. Serve the webpage from this notebook (instructions are also provided to serve the page locally)
  6. Upload images through the UI and classify them with the model