File size: 414 Bytes
63f44c7
 
 
 
 
 
 
 
 
 
 
0c8184b
 
efe59a1
ddb54aa
63f44c7
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Generated by the vetiver package; edit with care

library(pins)
library(plumber)
library(rapidoc)
library(vetiver)

# Packages needed to generate model predictions
if (FALSE) {
    library(caret)
}
pin_loc <- pins:::github_raw("DimbyTa/r-mlops-vetiver-huggingFace/main/pins-r/_pins.yaml")
b <- board_url(pin_loc)
v <- vetiver_pin_read(b, "accident_model")

#* @plumber
function(pr) {
    pr %>% vetiver_api(v)
}