I have used your model_trial_2 code but the results I get do not match with yours. I have made the following changes due to compatibility issues of tensorflow.
I have attached the code and results. Can you please comment on what is the mistake here?
code.txt
results.txt