The court may, after hearing and finding the dwelling unit or building constitutes a nuisance:
(1) Appoint a receiver and direct that present and future rents due from one or more occupants be paid by the occupant or occupants with such receiver as such rents fall due; or
(2) Allow the owner a reasonable time to correct the deficiencies.