from flask import send_file

@app.route('/getPlotCSV')
def plot_csv():
    return send_file('outputs/Adjacency.csv', mimetype='text/csv',
        attachment_filename='Adjacency.csv', as_attachment=True)
Flask: загрузка CSV-файла по нажатию кнопки