Skip to content

Upgrade model files to Keras v3 #9

@mostafa

Description

@mostafa

This is the error from a failed workflow:

ValueError: File format not supported: filepath=sqli_model/1. 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(sqli_model/1, call_endpoint='serving_default')` (note that your `call_endpoint` might have a different name).

Resources

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions