Skip to content

Commit

Permalink
fix: removes USER var, adds IS_COLAB var
Browse files Browse the repository at this point in the history
  • Loading branch information
krishr2d2 committed Jul 6, 2024
1 parent e9ee305 commit 156647f
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@
"outputs": [],
"source": [
"# Install the packages\n",
"USER=''\n",
"! pip3 install {USER} --upgrade google-cloud-aiplatform \\\n",
"! pip3 install --upgrade google-cloud-aiplatform \\\n",
" 'google-cloud-pipeline-components<2'\n",
"! pip3 install {USER} tensorflow==2.5 \\\n",
" tensorflow_hub\n",
"! pip3 install tensorflow==2.5 \\\n",
" tensorflow_hub\n",
" \n",
"! pip3 install {USER} --upgrade 'kfp<2'"
"! pip3 install --upgrade 'kfp<2'"
]
},
{
Expand Down Expand Up @@ -342,6 +341,10 @@
},
"outputs": [],
"source": [
"import sys\n",
"\n",
"IS_COLAB = \"google.colab\" in sys.modules\n",
"\n",
"if (\n",
" SERVICE_ACCOUNT == \"\"\n",
" or SERVICE_ACCOUNT is None\n",
Expand Down

0 comments on commit 156647f

Please sign in to comment.