Hello dear. I hope you are doing well. ML is what you just read above. That is, it is making machine (computers) learn certain pattern and then to make predictions. And AI is when we use it applicable in real world. So actually AI makes use of ML. Or we can ML is subset of AI.