def readCsv(labels_dir_path):
Function to read labels.csv file and store in memory
readCSV = csv.DictReader(open("HAM10000_metadata.csv"))
return readCSV
def return_label(image_name, csv_file):
After Change
def readCsv(labels_dir_path):
Function to read labels.csv file and store in memory
readCSV = csv.DictReader(tf.gfile.Open(labels_dir_path))
return readCSV
def return_label(image_name, csv_file):