(filename)
return send_from_directory(session['img_input_dir'],
                               filename)
For serving input images
For serving input images
For serving input images
def download_inputs(filename):
    """For serving input images"""
    return send_from_directory(session['img_input_dir'],
                               filename)
def download_inputs ( filename ) : return send_from_directory ( session [ 'img_input_dir' ] , filename )