My app works fine locally and also when I deploy it
At first anyways. I can never get it to crash myself, but every now and then (like after a week or two) the app suddenly displays an error suggesting my packages aren’t installed properly.
ModuleNotFoundError: No module named ‘torch’
But torch is listed in my requirements.txt file.
Fixing the issue is easy: I just need to reboot the app!
But why does this happen? How can I prevent the need for regular manual reboots?