Classify Images in a Directory to Different Categories using Buttons

Hi! Apologies if this is a trivial question. I am very new to dash. Lets say I have a directory locally which contains several png files of cats and dogs arranged randomly. I would like to know if its possible to say display n images from this directory at a time and classify them into dogs and cats using buttons, then click next, see the next n images and finally store all these classifications into a database. I couldn’t find a similar example in the documentation. Can someone point me to a useful link or suggest how can I solve this problem?