Put app.run inside __name__ = "__main__"