app keeps disconnecting ?

I run a pod with app.py, an application I run from the terminal to create an online interface for an image generator.

Everything works fine, but if I stop using the interface for about 1 or 2 minutes, the API returns an error, the terminal disconnects, and I have to rerun the program.

Does anyone know why this is happening and how to solve it? Appreciate your help
Was this page helpful?