Установите Flask Auto Reload

$ export FLASK_APP=main.py
$ export FLASK_ENV=development
$ flask run
bharath