mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
missing setting IS_COLAB (#2288)
This commit is contained in:
@@ -438,6 +438,9 @@
|
||||
" or SERVICE_ACCOUNT is None\n",
|
||||
" or SERVICE_ACCOUNT == \"[your-service-account]\"\n",
|
||||
"):\n",
|
||||
" import sys\n",
|
||||
" IS_COLAB = 'google.colab' in sys.modules\n",
|
||||
"\n",
|
||||
" # Get your service account from gcloud\n",
|
||||
" if not IS_COLAB:\n",
|
||||
" shell_output = !gcloud auth list 2>/dev/null\n",
|
||||
|
||||
Reference in New Issue
Block a user