If this were my enclosure , I would remove the frogs to a ( safe) temp tank and get rid of the ants.
Trap them, wait them out , whatever it takes.
I agree with James... the ants could stress the frogs ...or worse..... bite the frogs.