Example #1
0
def index():
    if request.method == 'GET':
        return send_file('index.html')

    data = request.form.get('text_in')
    if len(data) > 0:
        title_data = str(data)
    else:
        title_data = ""

    return extend(title_data, maxNumOfTokensToExtend)
Example #2
0
def index():
    if request.method == 'GET':
        return send_file('index.html')
    data = request.form.get('text')
    return extend(data)
Example #3
0
def index():
    if request.method == 'GET':
        return render_template('index.html')
    data = request.form.get('text_input')
    return extend(data)