Applying the Kohn-Sham method to gravitational would involve replacing the electromagnetic terms with gravitational ones.
Going through the terms in the equation:
The kinetic energy term would refer to that of each planet
The Coulomb potential would be replaced with the gravitational potential from the Sun
The final two potential terms would also be due to gravity rather than electromagnetic forces.