Root cause of running speed difference between in the local and in the Streamlit Cloud

Hi everyone,

I’ve developed an app but I see that it works in local slowly. I guess, root cause of this problem is the code runs after every single action in the app throughly. I think that it is a common case for streamliters :slight_smile: (You know, there is a “running…” text in the upper right corner of the screen and it makes you wait for a while.). Anyway, I’ve noticed that when I deploy my app in the Streamlit Cloud, the speed issue is gone. Why did I face this problem and how can I fix it in my local?

Here is my app and its source code:

Thanks in advance for your responses.

1 Like

I have the similar problem, it could be great if we could learn why it happens.