No, I wouldn't suggest that. The water would get dirty too fast and both would suffer.
Minimum tank size for the frog is usually 10 gallons AFAIK. They're messy eaters.
The only thing I put into 2.5g( with a filter ) with my Betta was three ghost shrimp.
Sent from my iPhone using Aquarium Advice