St.file_uploader keeps calling the callback function passed into the 'on_change' parameter on every other widget change

Thanks for your help, I think my issue is a bit different but related to the file_uploader callback, hope you can assist on that if you have time. I tried but could not come up with a workaround.