When you run,
app.run()
it should be the final piece of code, if you would like to confirm that the website works, then try to connect to it via HTTPS with "http://127.0.0.1:5000". If all works, the console should display that connected via HTTPS & Should show your IP address.