You'll need a transit visa, or a short stay visa. You will have to collect your bags, and then check-in to Gulf Air at Terminal 1*.
You actually have two journeys; one is from Prague to Dubai (last destination Dubai), and the second separate journey is from Dubai to India. So for the purposes of immigration you will need a visa for Dubai.
In fact, if you don't have a visa for Dubai you may be refused boarding at Prague. Check with your airline to see if they can arrange it for you in advance.
* There is actually a way to transit between these two terminals, without requiring a transit visa; but it requires you already hold a boarding card for the next leg of your journey. This facility is provided because flydubai (a LCC flying out of Terminal 2) has some agreements for transfer of passengers with Emirates (which uses Terminal 3). In addition, if you are carrying your onward boarding pass, you can pay the meet and greet services to collect your luggage and check it in for you, thus eliminating the need to get a transit visa.