TypeError: Error when deserializing class ‘InputLayer’ using config={‘batch_shape’: [None, 2376, 1], ‘dtype’: ‘float32’, ‘sparse’: False, ‘name’: ‘input_layer’}. Exception encountered: Unrecognized keyword arguments: [‘batch_shape’]

I am getting this error while using my model.h5 file in backend for deploying my model in a streamlit webapp

New contributor

Utkarsh Mahule is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.