Hide comment on media attachment page

Add Below code in function.php