If your circuit uses TX (GPIO1) as an output and RX (GPIO3) as an input then all you need to do is not call Serial.begin( ) as this is the default setting for GPIO3.
The ESP-01S has two primary boot modes: Flash mode and Normal Operation mode. Flash mode is for uploading code, while Normal Operation mode runs the code.