Question: Who was the ruler of france in 1830?

context: Louis Philippe I (6 October 1773 – 26 August 1850) was King of the French from 1830 to 1848. As Duke of Chartres he distinguished himself commanding troops during the Revolutionary Wars but broke with the Republic over its decision to execute King Louis XVI. He fled to Switzerland in 1793 after being connected with a plot to restore France's monarchy. His father Louis Philippe II, Duke of Orléans (Philippe Égalité) fell under suspicion and was executed, and Louis Philippe remained in exile for 21 years until the Bourbon Restoration. He was proclaimed king in 1830 after his cousin Charles X was forced to abdicate by the July Revolution. The reign of Louis Philippe is known as the July Monarchy and was dominated by wealthy industrialists and bankers. He followed conservative policies, especially under the influence of French statesman François Guizot during the period 1840–48. He also promoted friendship with Britain and sponsored colonial expansion, notably the French conquest of Algeria. His popularity faded as economic conditions in France deteriorated in 1847, and he was forced to abdicate after the outbreak of the French Revolution of 1848. He lived out his life in exile in the United Kingdom. His supporters were known as Orléanists, as opposed to Legitimists who supported the main line of the House of Bourbon.
question: Who was the ruler of France until 2 August 1830?
short_answers: Charles Philippe
Charles X
context: Louis-Philippe was sworn in as King Louis-Philippe I on 9 August 1830. Upon his accession to the throne, Louis Philippe assumed the title of "King of the French" – a title already adopted by Louis XVI in the short-lived Constitution of 1791. Linking the monarchy to a people instead of a territory (as the previous designation "King of France and of Navarre") was aimed at undercutting the legitimist claims of Charles X and his family.
question: Who was the ruler of France after 9 August 1830?
short_answers: Louis-Philippe I

Answer: Charles X (born Charles Philippe, Count of Artois) was King of France from 16 September 1824 until 2 August 1830. His reign of almost six years proved to be deeply unpopular from the moment of his coronation in 1825. France faced urban riots which led to the July Revolution of 1830, which resulted in his abdication and the election of Louis-Philippe I as King of the French. Louis-Philippe was sworn in as King Louis-Philippe I on 9 August 1830. Linking the monarchy to a people instead of a territory was aimed at undercutting the legitimist claims of Charles X and his family.