My app was running well initially but at the moment it gives this error;
AttributeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File “/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 535, in _run_script
exec(code, module.dict)
File “/mount/src/monkeys-species-classificaton-model/App.py”, line 38, in
model = tf.keras.models.load_model(model_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/saving/saving_api.py”, line 189, in load_model
return legacy_h5_format.load_model_from_hdf5(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/legacy/saving/legacy_h5_format.py”, line 133, in load_model_from_hdf5
model = saving_utils.model_from_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/legacy/saving/saving_utils.py”, line 85, in model_from_config
return serialization.deserialize_keras_object(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/legacy/saving/serialization.py”, line 495, in deserialize_keras_object
deserialized_obj = cls.from_config(
^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/models/sequential.py”, line 351, in from_config
model.add(layer)
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/models/sequential.py”, line 120, in add
self._maybe_rebuild()
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/models/sequential.py”, line 139, in _maybe_rebuild
self.build(input_shape)
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/layers/layer.py”, line 225, in build_wrapper
original_build_method(*args, **kwargs)
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/models/sequential.py”, line 183, in build
x = layer(x)
^^^^^^^^
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py”, line 122, in error_handler
raise e.with_traceback(filtered_tb) from None
File “/home/adminuser/venv/lib/python3.11/site-packages/keras/src/layers/reshaping/flatten.py”, line 72, in compute_output_spec
output_shape = self.compute_output_shape(inputs.shape)
^^^^^^^^^^^^
Please assist
My GitHub : bushurumark (Levi Mark Bushuru) · GitHub
You can check under monkeys classification repository