Flask App Deployment: Internal Server Error

Solution
if __name__ == "main":
    app.run(port=8000)