From a6240d656505ff873c1ae09c3395fb998385ebc4 Mon Sep 17 00:00:00 2001 From: nick863 <30440255+nick863@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:31:57 -0700 Subject: [PATCH] Fixes --- src/promptflow-evals/samples/EvaluatorUpload.ipynb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/promptflow-evals/samples/EvaluatorUpload.ipynb b/src/promptflow-evals/samples/EvaluatorUpload.ipynb index d10261082b6..a8a622315f8 100644 --- a/src/promptflow-evals/samples/EvaluatorUpload.ipynb +++ b/src/promptflow-evals/samples/EvaluatorUpload.ipynb @@ -26,7 +26,7 @@ "import yaml\n", "\n", "from azure.ai.ml import MLClient\n", - "from azure.identity._credentials.default import AzureCliCredential\n", + "from azure.identity._credentials.default import DefaultAzureCredential\n", "from azure.ai.ml.entities import (\n", " Model\n", ")\n", @@ -223,10 +223,7 @@ " \"subscription_id\": \"subscription-uuid\",\r\n", " \"registry_name\": \"registry-name\"\r\n", "}\r\n", - "```\"\r\n", - "\n", - "\n", - "``````" + "```\r\n" ] }, { @@ -259,7 +256,7 @@ "config_ws = configuration.copy()\n", "del config_ws[\"registry_name\"]\n", "\n", - "credential = AzureCliCredential()\n", + "credential = DefaultAzureCredential()\n", "ml_client = MLClient(\n", " credential=credential,\n", " **config_ws\n",