@app.route('/process_references', methods=['GET', 'POST'])
def process_references():
    upload = request.files.get('file', '').read()
    url = 'http://localhost:8070/api/processFulltextDocument'
    files = dict(input=upload, teiCoordinates='biblStruct')
    r = requests.post(url, files=files)
    tei_list = parse_tei(r.text)
    pd.set_option('display.max_colwidth', (- 1))
    df1 = pd.DataFrame(tei_list)
    df1 = df1.drop('year_pub', axis=1)
    df2 = df1.to_json()
    df1 = df1.to_html()
    df1 = re.sub('dataframe', 'myTable', df1)
    return render_template('process_fulltext.html', df1=df1, df2=df2)
@app.route('/process_references', methods=['GET', 'POST'])
def process_references():
    upload = request.files.get('file', ).read()
    url = 'http://localhost:8070/api/processFulltextDocument'
    files = dict(input=upload, teiCoordinates='biblStruct')
    r = requests.post(url, files=files)
    tei_list = parse_tei(r.text)
    pd.set_option('display.max_colwidth', (- 1))
    df1 = pd.DataFrame(tei_list)
    df1 = df1.drop('year_pub', axis=1)
    df2 = df1.to_json()
    df1 = df1.to_html()
    df1 = re.sub('dataframe', 'myTable', df1)
    return render_template('process_fulltext.html', df1=df1, df2=df2)