Hello FakeplexAdmin, When you come across an empty gym there will be a blank white NPC standing there. Go up to it and click on it. From there you will see an Anvil in a menu which you can click to add a Pokemon.