If I were you I would use a bait to get rid of the ant problem indoors because they will take the bait back to their nesting area and spread it around.
Spraying the ants may get rid of them temporarily but they will just move to another place and set up shop there.