improve to make it more aligned with the template (#2506)

This commit is contained in:
zhangxiaotian
2023-11-14 20:41:57 +00:00
committed by GitHub
parent 5f014bcf34
commit ba335b250b
@@ -145,43 +145,15 @@
"Install the following packages required to execute this notebook.\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "ArohgKN3MFJ7"
},
"source": [
"### Download SDK"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "iZj1BqoTxKNN"
},
"outputs": [],
"source": [
"!gsutil cp gs://visionai-artifacts/visionai-0.0.6-py3-none-any.whl ."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "mBAHlYAKMK1V"
},
"source": [
"### Install SDK"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "8O3A4i0gykbp"
"id": "2DWuFFA_wUtL"
},
"outputs": [],
"source": [
"!gsutil cp gs://visionai-artifacts/visionai-0.0.6-py3-none-any.whl .\n",
"!pip install visionai-0.0.6-py3-none-any.whl --force-reinstall"
]
},
@@ -256,32 +228,74 @@
{
"cell_type": "markdown",
"metadata": {
"id": "66X_4KaPf-SL"
"id": "sBCra4QMA2wR"
},
"source": [
"### Authenticate your Google Cloud account"
"### Authenticate your Google Cloud account\n",
"\n",
"Depending on your Jupyter environment, you may have to manually authenticate. Follow the relevant instructions below."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "74ccc9e52986"
},
"source": [
"**1. Vertex AI Workbench**\n",
"* Do nothing as you are already authenticated."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "de775a3773ba"
},
"source": [
"**2. Local JupyterLab instance, uncomment and run:**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "DIqeDLjPnoPd"
"id": "254614fa0c46"
},
"outputs": [],
"source": [
"!gcloud auth login"
"# ! gcloud auth login"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "t0-eDmP1s7Qc"
"id": "iXNewDH2wkV-"
},
"outputs": [],
"source": [
"!gcloud auth application-default login"
"# ! gcloud auth application-default login"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "ef21552ccea8"
},
"source": [
"**3. Colab, uncomment and run:**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "603adbbf0532"
},
"outputs": [],
"source": [
"# from google.colab import auth\n",
"# auth.authenticate_user(project_id=PROJECT_ID)"
]
},
{