from flask import Flask
from flask import jsonify
from flask import request


app = Flask(__name__)

@app.route('/')
def hello():
    """Return a friendly HTTP greeting."""
    return 'Hello I like to make AI Apps'

@app.route('/name/<value>')
def name(value):
    val = {"value": value}
    return jsonify(val)

@app.route('/about')
def direct():
    return "My first flask App :) :) :) :) :)"

@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['the_file']
        f.save('/var/www/uploads/uploaded_file.txt')



if __name__ == '__main__':
    # This is used when running locally. Gunicorn is used to run the
    # application on Google App Engine. See entrypoint in app.yaml.
    app.run(host='127.0.0.1', port=8080, debug=True)

1898f52633f8ec2f1e2652a7347ca50cd8b537a0
<mask token>


@app.route('/name/<value>')
def name(value):
    val = {'value': value}
    return jsonify(val)


@app.route('/about')
def direct():
    return 'My first flask App :) :) :) :) :)'


@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['the_file']
        f.save('/var/www/uploads/uploaded_file.txt')


<mask token>

<mask token>


@app.route('/')
def hello():
    """Return a friendly HTTP greeting."""
    return 'Hello I like to make AI Apps'


@app.route('/name/<value>')
def name(value):
    val = {'value': value}
    return jsonify(val)


@app.route('/about')
def direct():
    return 'My first flask App :) :) :) :) :)'


@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['the_file']
        f.save('/var/www/uploads/uploaded_file.txt')


if __name__ == '__main__':
    app.run(host='127.0.0.1', port=8080, debug=True)

<mask token>
app = Flask(__name__)


@app.route('/')
def hello():
    """Return a friendly HTTP greeting."""
    return 'Hello I like to make AI Apps'


@app.route('/name/<value>')
def name(value):
    val = {'value': value}
    return jsonify(val)


@app.route('/about')
def direct():
    return 'My first flask App :) :) :) :) :)'


@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['the_file']
        f.save('/var/www/uploads/uploaded_file.txt')


if __name__ == '__main__':
    app.run(host='127.0.0.1', port=8080, debug=True)

from flask import Flask
from flask import jsonify
from flask import request
app = Flask(__name__)


@app.route('/')
def hello():
    """Return a friendly HTTP greeting."""
    return 'Hello I like to make AI Apps'


@app.route('/name/<value>')
def name(value):
    val = {'value': value}
    return jsonify(val)


@app.route('/about')
def direct():
    return 'My first flask App :) :) :) :) :)'


@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['the_file']
        f.save('/var/www/uploads/uploaded_file.txt')


if __name__ == '__main__':
    app.run(host='127.0.0.1', port=8080, debug=True)

from flask import Flask
from flask import jsonify
from flask import request


app = Flask(__name__)

@app.route('/')
def hello():
    """Return a friendly HTTP greeting."""
    return 'Hello I like to make AI Apps'

@app.route('/name/<value>')
def name(value):
    val = {"value": value}
    return jsonify(val)

@app.route('/about')
def direct():
    return "My first flask App :) :) :) :) :)"

@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
    if request.method == 'POST':
        f = request.files['the_file']
        f.save('/var/www/uploads/uploaded_file.txt')



if __name__ == '__main__':
    # This is used when running locally. Gunicorn is used to run the
    # application on Google App Engine. See entrypoint in app.yaml.
    app.run(host='127.0.0.1', port=8080, debug=True)
