To download a CSV file from disk, you can use something like this: Allowing users to download CSV on click - #14 by gerdekk
Although in this case it might need to be slightly modified to open from a file - the code might look something like this:
@app.server.route('/fileDownload/<name>')
def download_file(name):
return flask.send_file(mem,
mimetype='application/octet-stream',
attachment_filename=f"data/{name}",
as_attachment=True)