library(plumber)
#http://localhost:8000/relative.risk
#https://www.rplumber.io/
#https://www.datacamp.com/community/tutorials/15-easy-solutions-data-frame-problems-r
r <- plumb("api.R") # Where 'plumber.R' is the location of the file shown above
r$run(host='0.0.0.0', port=8000)
#pr$handle("POST", "/model/cancel/<id>", endpoint_model_cancel(queue),
# serializer = serializer_json_hintr())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.