Hugging Face's logo
Wesleyjan
/
Runtime error

runtime error

gradio-3.35.2 Successfully installed gradio-3.26.0 gradio-client-0.1.2 [notice] A new release of pip available: 22.3.1 -> 24.0 [notice] To update, run: pip install --upgrade pip Installation successful! 2024-05-28 17:51:09.005312: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2024-05-28 17:51:09.006085: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used. 2024-05-28 17:51:09.009144: I external/local_tsl/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used. 2024-05-28 17:51:09.049775: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2024-05-28 17:51:09.988629: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT ****************************>>>>>>>>> GRADIO VERSION: 3.26.0 Traceback (most recent call last): File "/home/user/app/app.py", line 26, in <module> model = tf.keras.models.load_model("NCM_DEMO.H5", compile=False) File "/usr/local/lib/python3.10/site-packages/keras/src/saving/saving_api.py", line 193, in load_model raise ValueError( ValueError: File format not supported: filepath=NCM_DEMO.H5. Keras 3 only supports V3 `.keras` files and legacy H5 format files (`.h5` extension). Note that the legacy SavedModel format is not supported by `load_model()` in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use `keras.layers.TFSMLayer(NCM_DEMO.H5, call_endpoint='serving_default')` (note that your `call_endpoint` might have a different name).

Container logs:

Fetching error logs...