Ambulance crews were also in attendance including a special operations response team but there were no casualties.
A spokeswoman for Lothian and Borders Fire and Rescue Service said: "A first floor ceiling had collapsed on to the ground floor.
"Five pumps were in attendance and a further two special urban search and rescue teams were deployed into the collapsed area where it was quickly established that everyone was accounted for.
"A building control officer from the council was there and Scottish Power and Scottish Gas were requested by the fire service. The building was left safe and no casualties were recorded."
A police spokesman said: "The collapse triggered the fire alarm and alerted the people inside, they were outside before the emergency services arrived."