In any county having a metropolitan form of government with a population of less than one hundred thousand (100,000), according to the 1990 federal census or any subsequent federal census, the governing body of any municipality that has a metropolitan form of government may authorize the demolition and removal of any unoccupied building or dwelling that is in such a state of disrepair that it constitutes a violation of one (1) or more municipal codes so as to render the building or dwelling unfit for human habitation, as determined by a court having jurisdiction of the case; provided, that the owner of any unoccupied building or dwelling has the right, within twelve (12) months of any final judicial determination adverse to such owner, to make such repairs as are necessary to bring the building or dwelling in compliance with the applicable codes of the municipality.