try this
!pip install -U "tensorflow-text==2.13.*" --quiet
!pip install "tf-models-official==2.13.*" --quiet