Skip to content

Commit e8a050c

Browse files
zhizhoualanCopilot
andauthored
Update notebooks/build_person_directory.ipynb
Co-authored-by: Copilot <[email protected]>
1 parent 52de8f1 commit e8a050c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/build_person_directory.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"# Convert the new face image to base64\n",
167167
"image_data = AzureContentUnderstandingFaceClient.read_file_to_base64(new_face_image_path)\n",
168168
"# Add the new face to the person directory and associate it with the existing person\n",
169-
"face = client.add_face(person_directory_id, image_data, person['personId'])\n",
169+
"face = client.add_face(person_directory_id, image_data, existing_person_id)\n",
170170
"if face:\n",
171171
" print(f\"Added face from {new_face_image_path} with face_id: {face['faceId']} to person_id: {existing_person_id}\")\n",
172172
"else:\n",

0 commit comments

Comments
 (0)