Skip to content

Commit 07efdbf

Browse files
committed
chore(safe-synthesizer): move URLs to top for reference notebooks
1 parent f962f60 commit 07efdbf

File tree

3 files changed

+39
-14
lines changed

3 files changed

+39
-14
lines changed

nemo/NeMo-Safe-Synthesizer/advanced/advanced_privacy.ipynb

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
"- **Access an evaluation report** on the quality and privacy of the synthetic data"
2020
]
2121
},
22-
{
23-
"cell_type": "code",
24-
"execution_count": null,
25-
"id": "a538526a",
26-
"metadata": {},
27-
"outputs": [],
28-
"source": []
29-
},
3022
{
3123
"cell_type": "markdown",
3224
"id": "8be84f5d",
@@ -37,6 +29,17 @@
3729
"Ensure you have a NeMo Microservices Platform deployment available. If you're using a managed or remote deployment, have the correct base URLs and tokens ready."
3830
]
3931
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"id": "a538526a",
36+
"metadata": {},
37+
"outputs": [],
38+
"source": [
39+
"base_url = \"http://localhost:8080\"\n",
40+
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
41+
]
42+
},
4043
{
4144
"cell_type": "code",
4245
"execution_count": null,
@@ -74,7 +77,7 @@
7477
"outputs": [],
7578
"source": [
7679
"client = NeMoMicroservices(\n",
77-
" base_url=\"http://localhost:8080\",\n",
80+
" base_url=base_url\n",
7881
")"
7982
]
8083
},
@@ -94,7 +97,7 @@
9497
"outputs": [],
9598
"source": [
9699
"datastore_config = {\n",
97-
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
100+
" \"endpoint\": datastore_endpoint\n",
98101
"}"
99102
]
100103
},

nemo/NeMo-Safe-Synthesizer/advanced/replace_pii_only.ipynb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
"Ensure you have a NeMo Microservices Platform deployment available. If you're using a managed or remote deployment, have the correct base URLs and tokens ready."
2929
]
3030
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"id": "a0e23975",
35+
"metadata": {},
36+
"outputs": [],
37+
"source": [
38+
"base_url = \"http://localhost:8080\"\n",
39+
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
40+
]
41+
},
3142
{
3243
"cell_type": "code",
3344
"execution_count": null,
@@ -63,7 +74,7 @@
6374
"outputs": [],
6475
"source": [
6576
"client = NeMoMicroservices(\n",
66-
" base_url=\"http://localhost:8080\",\n",
77+
" base_url=base_url\n",
6778
")"
6879
]
6980
},
@@ -83,7 +94,7 @@
8394
"outputs": [],
8495
"source": [
8596
"datastore_config = {\n",
86-
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
97+
" \"endpoint\": datastore_endpoint\n",
8798
"}"
8899
]
89100
},

nemo/NeMo-Safe-Synthesizer/intro/safe_synthesizer_101.ipynb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@
2929
"**IMPORTANT** 👉 Ensure you have a NeMo Microservices Platform deployment available. Follow the quickstart or Helm chart instructions in your environment's setup guide. You may need to restart your kernel after installing dependencies.\n"
3030
]
3131
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"id": "8e0327d4",
36+
"metadata": {},
37+
"outputs": [],
38+
"source": [
39+
"base_url = \"http://localhost:8080\"\n",
40+
"datastore_endpoint = \"http://localhost:3000/v1/hf\""
41+
]
42+
},
3243
{
3344
"cell_type": "code",
3445
"execution_count": null,
@@ -65,7 +76,7 @@
6576
"outputs": [],
6677
"source": [
6778
"client = NeMoMicroservices(\n",
68-
" base_url=\"http://localhost:8080\",\n",
79+
" base_url=base_url,\n",
6980
")"
7081
]
7182
},
@@ -85,7 +96,7 @@
8596
"outputs": [],
8697
"source": [
8798
"datastore_config = {\n",
88-
" \"endpoint\": \"http://localhost:3000/v1/hf\",\n",
99+
" \"endpoint\": datastore_endpoint\n",
89100
"}"
90101
]
91102
},

0 commit comments

Comments
 (0)