Compare commits

...
Author SHA1 Message Date
Andrew Ferlitsch 5fdbc81173 fix: os 2023-05-05 21:41:05 +00:00
Andrew Ferlitsch 3d395f1b9f upgrade: boilerplate reduction 4 2023-05-05 21:26:21 +00:00
@@ -141,13 +141,7 @@
"source": [
"import os\n",
"\n",
"# Google Cloud Notebook\n",
"if os.path.exists(\"/opt/deeplearning/metadata/env_version\"):\n",
" USER_FLAG = \"--user\"\n",
"else:\n",
" USER_FLAG = \"\"\n",
"\n",
"! pip3 install --upgrade google-cloud-aiplatform $USER_FLAG\n",
"! pip3 install --upgrade --quiet google-cloud-aiplatform\n",
"\n",
"if os.environ[\"IS_TESTING\"]:\n",
" ! pip3 install --upgrade tensorflow $USER_FLAG"
@@ -370,6 +364,8 @@
},
"outputs": [],
"source": [
"import os\n",
"\n",
"import google.cloud.aiplatform as aiplatform"
]
},