Flask returns 404 error when trying to connect via localhost

Solution
@app.route('/')
if __name__ == "__main__":
    app.run(debug=True)