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
2 Replies
Jason
Jason5d ago
Because the terminal closes You can use something like tmux or screen Both Is an app you can install and use from the terminal It's a terminal multiplexer which will keep your apps online even though your terminal closes Search online for more details to ask chatgpt on a guide
CryptoNET
CryptoNETOP5d ago
thank you i will

Did you find this page helpful?