Combining object detection and led light sensor coding

Hi. I was wondering. how do i combine my coding for object detection and led sensor. i have craeted both coding successfully. but how do i combine these two coding so that when an object is detected, the led sensor will light.
ImageClassifierFeatureDetectors.py (1.7 KB)

above is the attached coding that i have created. i just dont know how to combine these two coding to ensure that when my camera detect an object, the led light will blink. Please if anyone can help me i will really appreaciate it. Thankyou!

gpiodemo.py (433 Bytes)
this is another coding which is for the led blink. im a new user so i could not post more than 1 attachment