The two dogs that died from smoke inhalation when a fire ripped through Bridget Foy's restaurant on Philadelphia's South Street had been rescues, one from hurricane ravaged Puerto Rico and the other from a hoarding situation in Kentucky.

Yogi, a 4-year-old shepherd mix, and Precious, a chihuahua mix, had been staying at Doggie Style Pets, which adjoin's Bridget Foy's, under an arrangement with Saved Me, a no-kill shelter.

At the store, the dogs were being acclimated to being around people and other dogs, the shelter said in a facebook post.

"Both were learning that people are good," the shelter said.

Yogi was rescued in Puerto Rico and Precious was saved from a hoarding situation in Bowling Green, Ky., Saved Me said.

Bridget Foy’s, a fixture at Second and South Streets for nearly 40 years, was destroyed in a two-alarm fire that broke out early Wednesday. Eleven apartment residents also were displaced by the fire.

The cause of the fire is under investigation and community efforts are underway to help the restaurant and pet store reopen.