Quick restart problem

Welcome, everyone.
I’m facing an important problem, and I want to know a quick solution to it, please.
I’m working on a project where the user inserts some data and then a prediction occurs.
But when I run the program, when I enter the first value, the program automatically restarts.
Which erases the data again.

I hope you can help me.
Because my project re-delivery is approaching.