@Eduardo Gomez I see you are referring to the same resource from both the screens. The keys in this case will be same, that is, your training resource keys are the ones mentioned above. Please substitute the keys and endpoint for training resource in your file.
For prediction, you will have to create another resource. Just navigate to your custom vision portal home screen and choose the settings icon from the top right corner and hit the "Create New" button. This will enable to pick the kind of resource required in your subscription. Choose "CustomVision.Prediction". This creates a new resource that you can look up in azure portal where you can copy the keys and its endpoint. The prediction resource id would be available from the properties tab of this resource.
I hope this helps!!
If an answer is helpful, please click on or upvote which might help other community members reading this thread.