If the source of tannins is driftwood, remove it from the tank, boil and rinse it until your water runs clear. Then you won't have it continuing to add the tannins to your water and you can remove the bulk of what's left in the tank through water changes.