import os

import tensorflow as tf
from tensorflow import keras
from google.colab import drive
drive.mount(’/content/gdrive/’)
reconstructed_model = keras.models.load_model("/content/gdrive/MyDrive/TF/tf_model.h5")
error:
Drive already mounted at /content/gdrive/; to attempt to forcibly remount, call drive.mount("/content/gdrive/", force_remount=True).


ValueError                                Traceback (most recent call last)
 in ()
6 drive.mount(’/content/gdrive/’)
7
----> 8 reconstructed_model = keras.models.load_model("/content/gdrive/MyDrive/TF/tf_model.h5")
1 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/saving/hdf5_format.py in load_model_from_hdf5(filepath, custom_objects, compile)
174     model_config = f.attrs.get(‘model_config’)
175     if model_config is None:
 → 176       raise ValueError(‘No model found in config file.’)
177     if hasattr(model_config, ‘decode’):
178       model_config = model_config.decode(‘utf-8’)
ValueError: No model found in config file.