Skip to content

Commit f3d38dd

Browse files
authored
fix: hugging face api empty string error (#388)
1 parent 3a9bd2d commit f3d38dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nemo/Evaluator/Custom LLM-as-a-Judge/llm-as-a-judge-notebook.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
},
181181
{
182182
"cell_type": "code",
183-
"execution_count": 12,
183+
"execution_count": null,
184184
"metadata": {},
185185
"outputs": [
186186
{
@@ -205,7 +205,7 @@
205205
"source": [
206206
"from huggingface_hub import HfApi\n",
207207
"\n",
208-
"hf_api = HfApi(endpoint=f\"{NDS_URL}/v1/hf\", token=\"\")\n",
208+
"hf_api = HfApi(endpoint=f\"{NDS_URL}/v1/hf\", token=None)\n",
209209
"\n",
210210
"# Create repo\n",
211211
"hf_api.create_repo(\n",

nemo/Evaluator/Prompt Optimization/Prompt Optimization.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
},
139139
{
140140
"cell_type": "code",
141-
"execution_count": 252,
141+
"execution_count": null,
142142
"metadata": {},
143143
"outputs": [
144144
{
@@ -171,7 +171,7 @@
171171
"NAMESPACE = \"llm-judge\"\n",
172172
"DATASET_NAME = \"hs2-short\"\n",
173173
"\n",
174-
"hf_api = HfApi(endpoint=HF_ENDPOINT, token=\"mock\")\n",
174+
"hf_api = HfApi(endpoint=HF_ENDPOINT, token=None)\n",
175175
"repo_id = f\"{NAMESPACE}/{DATASET_NAME}\"\n",
176176
"\n",
177177
"# Create the dataset repo if it doesn't exist\n",

0 commit comments

Comments
 (0)