App crashes when image is uploaded

My app takes an image and passes it to a model and then prints the image with the annotations. When I tried it on my phone and after uploading an image, the app crashed and the below error appeared:

Github: GitHub - Nabil-Miri/mystreamlit
App link:

I rebooted it but whenever I reboot my app it doesn’t work. I need to delete it and recreate it to work. :frowning:

Any help please??

Hi Nabil-Miri,

Thanks for posting! It looks like your app is exceeding the 1GB resource limit, which is causing the error. Check out this blog post for some suggestions on reducing your app’s memory usage.


1 Like

Thanks a lot Caroline. Will try the proposed solutions. :pray:

1 Like