# Handler.py not executed in Inference Endpoint

**URL:** <https://discuss.huggingface.co/t/handler-py-not-executed-in-inference-endpoint/54903>\
**Category:** Inference Endpoints on the Hub\
**Created:** [September 13, 2023, 7:55pm UTC](https://discuss.huggingface.co/t/handler-py-not-executed-in-inference-endpoint/54903 "2023-09-13T19:55:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel1212](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@Pawel1212](https://discuss.huggingface.co/u/Pawel1212)\
**Post date:** [September 13, 2023, 7:55pm UTC](https://discuss.huggingface.co/t/handler-py-not-executed-in-inference-endpoint/54903/1 "2023-09-13T19:55:14Z")

</div>

I created a repo based on Llama 2 7B Pawel1212/Llama-2-7b-chat-hf and added handler.py but it seems it is not used. I added some prints and additional behaviour but but neither see the prints nor the new behaviour.

I created the endpoint as Custom task.

Do you maybe know what can be a reason?
