It's cool that you can immediately update the output whenever the input changes.
But what if the code inside the function changes? Do you have hot reloading functionality?
Streamlit handles this by re-executing the whole script when detecting any code changes. You can cache certain resources (such as the model), but it's fiddly to get right.
We don't have hot reloading. We avoided caching certain resources because of this exact reason, its a bit finicky. But we're working on a better way to do it.
But what if the code inside the function changes? Do you have hot reloading functionality?
Streamlit handles this by re-executing the whole script when detecting any code changes. You can cache certain resources (such as the model), but it's fiddly to get right.