I am using Streamlit as the UI for my prediction project. The final output, or prediction, is constant. It does not change, even when I try to check the prediction for other feature values. How can i resolve this?
Thank you for sharing your question with the community!
Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.
Are you using
@st.cache for your prediction function? If yes, that might be the reason why you’re getting the same output.