0

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
2
  • 1
    Please provide enough code so others can better understand or reproduce the problem. Commented Apr 11 at 8:21
  • Hi @Anushk, The ValueError likely 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. Commented Jul 14 at 5:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.