How i susbtitute the initial code?

Hello, I would like to modify the initial code in the jupyter notebook, because after time my API_KEY doesn’t work anymore.

I make download of my dataset in edge impulse (like training and testing), but how I substitute the original code to my data ?

X = download_data(url)
Y = download_data(url)

I try to pass my dataset like this:

X=[]
path1=os.path.join('testing')

for img in os.listdir(path1):
    X_test = cv2.imread(os.path.join(path1,img))
    X.append(X_test)
z = np.array(X)

But it did not work, someone can help me?

Hi,

Would it be possible to have more information about what you are trying to achieve? API key does not timeout.

Regards,
Omar