From pytorch to tensorflow

I have fine-tuned PEGASUS model for abstractive summarization using this script but it is in pytorch.
Is there a way to transorm it into tensorflow model so I can use it in a javascript backend?