Can't Deploy machine learning model

I don't have the capacity to debug your whole app for you but a couple of things
turn on shiny::devmode() to improve the error logging; often it will point you to the code line with the problem.
Theres also the shiny debug guide you should look at .