fix: replace tabs with spaces in JSON template (#888)

* fix: replace tabs with spaces in JSON template

* fix: replace tabs with spaces in JSON template
This commit is contained in:
Andrew Ferlitsch
2022-08-19 11:11:08 -07:00
committed by GitHub
parent ed0c1c74a6
commit 7804c860c5
@@ -214,7 +214,7 @@
"if not os.getenv(\"IS_TESTING\"):\n",
" # Automatically restart kernel after installs\n",
" import IPython\n",
" \n",
"\n",
" app = IPython.Application.instance()\n",
" app.kernel.do_shutdown(True)"
]
@@ -675,6 +675,18 @@
"!./swivel_template_configuration.sh -pipeline_suffix {YOUR_PIPELINE_SUFFIX} -project_number {PROJECT_NUMBER} -project_id {PROJECT_ID} -machine_type {MACHINE_TYPE} -accelerator_count {ACCELERATOR_COUNT} -accelerator_type {ACCELERATOR_TYPE} -pipeline_root {BUCKET}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "1cacea95d68c"
},
"outputs": [],
"source": [
"! sed \"s:\\t: :g\" swivel_pipeline_basic.json >tmp.json\n",
"! mv tmp.json swivel_pipeline_basic.json"
]
},
{
"cell_type": "markdown",
"metadata": {
@@ -765,19 +777,15 @@
"# Instantiate PipelineJob object\n",
"pl = aiplatform.PipelineJob(\n",
" display_name=YOUR_PIPELINE_SUFFIX,\n",
"\n",
" # Whether or not to enable caching\n",
" # True = always cache pipeline step result\n",
" # False = never cache pipeline step result\n",
" # None = defer to cache option for each pipeline component in the pipeline definition\n",
" enable_caching=False,\n",
"\n",
" # Local or GCS path to a compiled pipeline definition\n",
" template_path=\"swivel_pipeline_basic.json\",\n",
"\n",
" # Dictionary containing input parameters for your pipeline\n",
" parameter_values=PARAMETER_VALUES,\n",
"\n",
" # GCS path to act as the pipeline root\n",
" pipeline_root=PIPELINE_ROOT,\n",
")\n",