Try saving the .h5 model to later convert it to tfjs.
import tensorflowjs as tfjs
model_from_h5 = tf.keras.models.load_model(\'Model.h5\') tfjs.converters.save