In the code block for the MaskInference class, connections.append([key, f'model:{key}']) is missing brackets around f'model:{key}, which causes the code to run into a KeyError. The correct code should be connections.append([key, [f'model:{key}']]), as shown in the printed model config of MaskInference later in the HTML.