Some functions of my app take a long time to execute, more than one minute. So, I clicked the stop button.
After clicking stop button, some requests cannot be executed, including switching pages and executing background functions. There is no response to clicking.
As also mentioned in the previous reply, clicking on Stop would terminate the app run thereby resulting in no further running of any processes in the app.
Using st.stop() would cause Streamlit to not run any statements as it stops execution immediately.
More info on the Docs page:
If you’d like to have the app continue running then please replace st.stop() with a warning message instead such as using st.warning().
Hope this helps!
But after 1 minute, does the app complete its calculation and show the intended output?
Because my user got impatient because he waited too long, he clicked the stop button, which may prevent other users from using the app.
So, is there a way to remove this stop button, or replace this stop button with something else.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.