I see that you are downloading weights.hdf5 file from https://github.com/Tony607/Keras_age_gender/releases/download/V1.0/release
What exactly does this file have ?
Is this like a pre trained model to predict age or have you done any external training to train any model ?
Please let me know so that I can understand the code