Установите Flask Auto Reload
$ export FLASK_APP=main.py
$ export FLASK_ENV=development
$ flask run
bharath
$ export FLASK_APP=main.py
$ export FLASK_ENV=development
$ flask run