Video outdated - Converting Models to JavaScript In Code

In case anyone is having issues with " Converting Models to JavaScript In Code" exercise, as you can see the code provided in Github is different from what’s in the video. Instead of manually downloading the model.json from “tmp/linear” folder, you can also download direct on Colab with the following code:

try:
from google.colab import files
files.download(‘./model.json’)
files.download(‘./group1-shard1of1.bin’)
except ImportError:
pass

1 Like

Thanks for the tip, Jenna! We’ll bookmark this for future revisions.

1 Like