What kind of babies ? Fry traps usually work ok if there's good water circulation through it, enough space in it and so long as the parents can't get in and the babies can't get out.
Fry often hang near the top, usually they would be hiding in floating plants, but check water parameters to be sure there isn't any ammonia or nitrite, fry are pretty sensitive.