It looks like the memory usage of your app is spiking up to 3GB, which is the limit. I’d recommend implementing caching if you haven’t already to reduce your memory usage.
I retested it again at local host - When I run it for the first time - it takes some time [ close to a minute]. but when I test it for the second time , it displays the output within a second.
It means cache function is working perfectly on the local host server but not on the cloud is what I feel.
Can you please have a look? I want to upload this project as a part of professional assignment
It looks like your app is still spiking to 3GB. Caching works both locally and when the app is deployed; in this case, the reason that the app is working on your local machine is that the memory is not limited to 3GB when you run the app locally, while your app is limited to 3GB when deployed with Community Cloud.
I’d recommend checking out these strategies for minimizing memory usage, and you may want to also consider deploying your app on a different platform which offers paid plans for increased memory usage.
I tried following the steps mentioned in strategies used for minimizing memory usage however it’s still not working. I even tried deploying it on other platforms but none can beat streamlit when it comes to ease of use.
Will it be possible to extend the memory usage beyond 3 GB for this app for a few days [ 7 / 15 days] in the free version? It would be a great help if that is possible.