Two people were taken to the hospital to be treated for injuries after jumping out of a second-floor window to escape the blaze.