Flames broke out just before 9:00 p.m. Saturday at the apartments at 5510 Walnut Street.
Firefighters found the source in a third floor apartment and quickly put out the flames.
A 45-year-old man and 65-year-old woman were taken to the Hospital of the University of Pennsylvania and treated for smoke inhalation.
The cause of the fire is under investigation.