ResNet50 Error with Multiple outputs

Would this answer from the other topic work?