@app.route('/process_fulltext', methods=['GET', 'POST'])
def process_fulltext():
    upload = request.files.get('file', '').read()
    url = 'http://localhost:8070/api/processFulltextDocument'
    files = dict(input=upload, teiCoordinates='biblStruct')
    r = requests.post(url, files=files)
    return render_template('process_fulltext.html', r=r.text)
@app.route('/process_fulltext', methods=['GET', 'POST'])
def process_fulltext():
    upload = request.files.get('file', ).read()
    url = 'http://localhost:8070/api/processFulltextDocument'
    files = dict(input=upload, teiCoordinates='biblStruct')
    r = requests.post(url, files=files)
    return render_template('process_fulltext.html', r=r.text)