Text this: Prediction and real-time compensation of qubit decoherence via machine learning