Keras CNN model works fine in Jupyter but gives same prediction fr every image in streamlit

When the same code is run in Jupyter notebook and streamlit, I get different outputs from the same Keras model.