Create my own hailo-rpi5-example 's detection.py

I run detection.py with my own YoloV8n model in raspberry pi with Hailo-8n and it’s works fine but when I do editing in the detection.py program, the main frame shows no change from before. how I can create my own “detection.py” program?