I’m trying to poll results at the server side, if there are no results at the moment, I use time.sleep(2), and then try again. I’m showing st.write(“Fetching…”) in st.empty(), and replacing it with the results once I have something. This actually works nice. The GUI is responsive and I get the results on the browser as soon as they reach the relevant database.
My issue is, if I decide not to wait for the results, but rather change the parameters that are already shown and enabled on the screen, I still need to wait for having results for the previous parameters, it will not break out of my polling loop otherwise.
A lot of thanks in advance.