# NOT RUN {
library(mlflow)
# save simple model with constant prediction
mlflow_save_model(function(df) 1, "mlflow_constant")
# serve an existing model over a web interface
mlflow_rfunc_serve("mlflow_constant")
# request prediction from server
httr::POST("http://127.0.0.1:8090/predict/")
# }
Run the code above in your browser using DataLab