You could whip out your cell phone and beg someone to drive out and pick you up. Make sure they have a big enough vehicle to fit you bike in.
Or you could just fix it yourself. If the tire just has a tiny hole in it, you can replace the tube and be on your way. If it has a large gash or sidewall damage, you might have to replace the tire as well.
Changing a flat on a bike with inner tubes is not all that difficult. You do need to carry some basic equipment with you however.