Error in Hailo Application Code Examples

In the Hailo Application Code Examples Repo, there is an example of how to use the hailo api to stream video.

On line 67 there is this statement
layer_from_shape: dict = {infer_results[key].shape:key for key in infer_results.keys()}
This throws an error because the data type of infer_results[key] is a list (not a numpy array).

Actually, I dont get what this is supposed to do.
It is going to return a dictionary where they keys are the tensor shape, and the values are the model name (in this case “yolox_s_leaky/yolox_nms_postprocess”). It iterates over all the keys, but there is only one key in infer_results

Given that there is only one key in infer_results, I dont see how the code

endnodes = [infer_results[layer_from_shape[1, 80, 80, 4]],  # stride 8 
                    infer_results[layer_from_shape[1, 80, 80, 1]],  # stride 8 ...

is supposed to work.

Maybe the .hef file has been changes since this code was written (???). I am using the .hef file specified in the get_resource.sh file
(“https://hailo-model-zoo.s3.eu-west-2.amazonaws.com/ModelZoo/Compiled/v2.6.1/yolox_s_leaky.hef”)

Has anyone got this to work?