Thanks for this quick fix!
In case you want to upload single files instead of a whole folder change the line to this:
reference_imgs = gr.File(file_count="multiple", file_types = ['.png','.jpg','.jpeg'], label="Upload Guide Frames", show_label=True, live=True)