Predict and sample

I am not getting the expected output . please tell me what am I doing wrong

Please click my name and message your notebook as an attachment.

@SHAHID_KAMAL

You should not recreate LSTM_cell before making use of a model. This has the same effect of not training the lstm.
Please remove the highlighted line as shown in comment below.

LSTM_cell = LSTM(n_a, return_state = True) # Remove this line
inference_model = music_inference_model(LSTM_cell, densor, Ty = 50)