knitr::opts_chunk$set(echo = TRUE)
library(googleAuthR) library(googleCloudVertexAIR) options(googleAuthR.scopes.selected = "https://www.googleapis.com/auth/cloud-platform") gar_auth_service(json_file = Sys.getenv("GAR_SERVICE_JSON"))
projectId <- Sys.getenv("GCVA_DEFAULT_PROJECT_ID") gcva_region_set("us-central1") gcva_project_set(projectId)
models <- gcva_list_models() models
model <- gcva_model(model = models[1,1]) model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.