No. that is too small a space to keep even a guppy in for an extended period of time, let alone a swordtail. You still didn't answer my question, how long are you going to be gone?
Look the good news is that she will have more young. She will most likely drop fry about once a month for several months. So, if the first batch doesn’t make it there will be more. It is also true that it could be more than a month before she drops any fry at all.
If you are worried that the fry will show up while you are away make sure they will have a lot of good hiding places. This will give them a fighting chance. Live plants or flake plants will do the trick. You can even go pick up some cheep ones you do not eve like and just throw them in while your gone (make sure to rise them of in water and a water primer before you put them in).
They may or may not make it, but you won't stress out the mother this way. I agree no breeding trap.
PS: The can go a week with out food, but if you want to make sure they do not get to hungry you can go with an automatic feeder, the food pyramids (they can mess with PH), or have some one come by once or twice just to tide them over.
I would just leave her where she is. Anything you do that causes stress could make her drop the fry before they are ready, and that is not a pretty thing to see. Even those holding pens can sometimes cause females to drop prematurely. As a result of this, I waited till the female had them on her own and just siphoned up the fry and then put them into the breeding nets afterwards. As long as you've got a few decent hiding spot most of the fry should make it and you can pull them later. Plus, this will not be the last time she has fry, in fact, I hope you have some sort of future plan for the fry because she will most likely drop once a month.