Running python model in Shiny application

I am building a shiny app where I'd like to make a prediction on new data based on a model built in Python(scikit-learn). The model is saved as a pickle file. Is there some way of calling the model trained in Python and saved as a .pkl file in a Shiny application?

Couple of suggestions: you can use reticulate, or you can run your Python model as a service and use it through REST.

Thanks, can you point me to a resource on using the pkl model through reticulate?

I've never done something like this, but the good point to start is probably official documentation at https://rstudio.github.io/reticulate/

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.