(filename)
return send_from_directory(session['img_output_dir'],
                               filename)
For serving output images
For serving output images
For serving output images
def download_outputs(filename):
    """For serving output images"""
    return send_from_directory(session['img_output_dir'],
                               filename)
def download_outputs ( filename ) : return send_from_directory ( session [ 'img_output_dir' ] , filename )