diff --git a/edenai_apis/apis/google/google_video_api.py b/edenai_apis/apis/google/google_video_api.py index ee49d5f8..56bc97be 100644 --- a/edenai_apis/apis/google/google_video_api.py +++ b/edenai_apis/apis/google/google_video_api.py @@ -331,7 +331,7 @@ def video__face_detection_async__get_job_result( for attr in track["timestampedObjects"][0].get( "attributes", [] ): - attribute_dict[attr["name"]] = attr["confidence"] + attribute_dict[attr["name"]] = attr.get("confidence") attributs = FaceAttributes( headwear=attribute_dict.get("headwear"), frontal_gaze=attribute_dict.get("looking_at_camera"),