From 38e13d94dd825c6da4e1e0e0045541d084202fe9 Mon Sep 17 00:00:00 2001 From: Haitem Date: Mon, 30 Jun 2025 15:20:19 +0200 Subject: [PATCH] Update file path --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 6cd63dc..d53f6b2 100644 --- a/app.py +++ b/app.py @@ -43,7 +43,7 @@ try: for detection in response: print(str(detection['id']) + " Anonymization Started", flush=True) - img_path = "{}{}".format(base_path, detection['source_image_path']) + img_path = "{}{}".format(base_path, detection['path']) #print(img_path, flush=True) #Skip Non existing files if (not os.path.exists(img_path)): @@ -57,7 +57,7 @@ try: if (len(faces) <= 0): data = { "id": detection['id'], - "source_image_path": img_path.replace(base_path,""), + "path": img_path.replace(base_path,""), "face_found": 0, } response = requests.post('{}/anonymize'.format(root_api_url), json=data) @@ -93,7 +93,7 @@ try: data = { "id": detection['id'], - "source_image_path": new_img_path.replace(base_path,""), + "path": new_img_path.replace(base_path,""), "face_found": len(faces), } response = requests.post('{}/anonymize'.format(root_api_url), json=data)