adding up to the discussion, this links can help you have a deeper understand if you want:

Using the SavedModel format  |  TensorFlow Core 11
Save and load models  |  TensorFlow Core 6
Save and load Keras models  |  TensorFlow Core 5

I’d go over these tutorials (they are short), they will give you a good understanding.