вот ориг сообщения: pd.read_csv is not for folders, and it is not for images, it is strictly for ".csv" files. There's lots of other things that need to be pointed out, for example you never call create_model in main, you redefine it 3 times, and the last 2 would cause infinite recursion, they should have different names