Hi, please try after removing +1 while collecting the real_data. I mean replace below line
real_data = [model_inputs[len(model_inputs) + 1 - prediction_days : len(model_inputs)+1, 0]]
with
real_data = [model_inputs[len(model_inputs) - prediction_days : len(model_inputs)+1, 0]]
Let me know if it fixed the issue.