Thanks for the reply. I just tried $comments = get_comments($post->ID); and it did not work as it returns all comments for all posts.
I only want to get the comments for a specific post. When I try $comments = get_comments(‘post_id=24’); I get all the comments just for post 24. How do I get it to work dynamically where I can it to return the comments just for the current post?