0

I want to run this code in google colab

def loadData(test_size=0.2):
    x,y = [], []
    for file in glob.glob("F:\\3rd year\\6th sem\\minor project\\Data\\RAVDESS\\Actor_*\\*.wav"):
        fileName=os.path.basename(file)
        emotion1=emotions[fileName.split("-")[2]]
        if emotion1 not in observedEmotions:
            continue
        feature=extractFeature(file, mfcc=True, chroma=True, mel=True)
        x.append(feature)
        y.append(emotion1)
    return train_test_split(np.array(x), y, test_size=test_size, random_state=9)

but I have added my dataset from google drive but in this code the dataset was taken from a local drive in line 3, please someone help me to add google drive location in line 3

/content/gdrive/MyDrive/datatset/Actor_*/*.wav

above is the google drive location till dataset, rest were added to match the line

0 Answers0