Philadelphia City Hall was the tallest building in the world from 1901 to 1908 . It was the tallest habitable building in the world from 1901 to 1908 and the tallest in Pennsylvania until 1932 when surpassed by the Gulf Tower in Pittsburgh .