On 2 September 1946, the Interim Government was formed from the newly elected Constituent Assembly of India. The mission of the Interim Government was to lead the country to independence - and it was headed Jawaharlal Nehru, leader of the Indian National Congress.
After the end of World War II, the British authorities released all political prisoners in India. The Indian National Congress, which had long fought for the country’s independence, agreed to participate in the election of the Constituent Assembly together with the Muslim League. The British government of Clement Attlee sent a delegation to India in 1946 to work out a procedure for the formation of a government that would ensure the full independence of British India.
Elections to the Constituent Assembly were not direct, as members were elected from each provincial legislature. The Indian National Congress won about 69 percent of the seats in Hindu-majority regions, while the Muslim League won the seats allocated for the Muslim electorate.
The Interim Government remained in office until 15 August 1947, when the country became independent but was divided into two states: India and Pakistan.

Source:

Jawaharlal Nehru. Memoirs. Researches. Institute of Oriental Studies of the USSR Academy of Sciences. - M.: Nauka Publishing House, 1989.