Gap and pseudogap evolution in underdoped cuprates