# Handler.py not executed in Inference Endpoint

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhandler-py-not-executed-in-inference-endpoint%2F54903%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [September 13, 2023, 7:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhandler-py-not-executed-in-inference-endpoint%2F54903 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPawel1212)%5C
**Post date:** [September 13, 2023, 7:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhandler-py-not-executed-in-inference-endpoint%2F54903%2F1 "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?
