{% extends "layout.html" %} {% block body %} {{ super() }}
1. Install tensorflowjs.
pip install -i https://mirrors.aliyun.com/pypi/simple/ tensorflowjs2. Convert the DNN model to the web format.
import tensorflowjs.converters3. After the conversions, the model.json has an empty 'modelTopology', populate this node from the original model.json