How can I prevent caching of my final output?

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?

Hi @Tobs,

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.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.