if (FALSE) {
# Requires a downloaded model (not run in checks)
model_path <- "model.gguf"
if (file.exists(model_path)) {
ctx <- edge_load_model(model_path)
# ... use model ...
edge_free_model(ctx) # Clean up
}
}
Run the code above in your browser using DataLab