I am deploying an app that is using an LSTM Model saved as .h5. It worked perfectly locally, but while deploying on the Streamlit Cloud, it gives the this error:
ValueError: Unrecognized keyword arguments passed to LSTM:
{'time_major': False} in the streamlit cloud
ValueErrorlikely occurred due to a TensorFlow/Keras version mismatch between where the LSTM model was saved and the Streamlit Cloud deployment. To fix this, kindly pin the exact TensorFlow/Keras version in your requirements.txt file on Streamlit Cloud.