Im having the same issue right now! Everything works fine when i'm running everything in my IDE (or when I run it through cmd -> python main.py) but when I make the .exe file with PyInstaller and run it, the model simply doesnt make the predictions, the app just stays loading forever. It seems as if the predict() function just does not work.