Users can't use app live, only locally. Crashes after file upload

Hi everyone! Does anyone know why my web-app is having so many issues with uploading a file?

The app is pretty simple: starts with uploading a file (<2GB) and then after that we do some manipulations of the data and run an ML algorithm on it (you can check it out here if you want). However, users never make it to that part; as soon as they upload the data, the app crashes, and takes several minutes to reload (only to crash again when the data is reuploaded).

This problem does NOT happen when the app is run locally, which is what we’ve been recommending our users do, but it’s frustrating that this app doesn’t work the way it should. I would love any advice about why this might be happening on the live version and not the local version, and what I could do to fix it.

Thanks everyone!

The total memory limit for a Community Cloud app is currently 2.7GB. If you include the uploaded file, the model, and any computations in between, might you be exceeding the limits?