The way that code is written, the LED will stay on for "at least" 1 second once it sees a high input.
If the input continues to remain high, the Led will continue to remain on until the input goes low.
Is the high signal a momentary pulse or is on for a longer period - say 5 seconds?