from flask import Flask, Response

app = Flask('flaskapp')


@app.route('/hello')
def hello_world():
    return Response(
        'Hello world from Flask!\n',
        mimetype='text/plain'
    )

app = app.wsgi_app

add flaskapp for web server