def handle_folder(pth):
    image = {}
    for i in os.listdir(pth):
        if (i.endswith('.jpeg') or i.endswith('.jpg')):
            image[i] = (pth + i)
    return image
def handle_folder(pth):
    image = {}
    for i in os.listdir(pth):
        if (i.endswith('.jpeg') or i.endswith('.jpg')):
            image[i] = (pth + i)
    return image