# Help with custom handler.py for model inference endpoint

**URL:** <https://discuss.huggingface.co/t/help-with-custom-handler-py-for-model-inference-endpoint/74406>\
**Category:** Beginners\
**Created:** [February 22, 2024, 10:19pm UTC](https://discuss.huggingface.co/t/help-with-custom-handler-py-for-model-inference-endpoint/74406 "2024-02-22T22:19:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgunzy](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@dgunzy](https://discuss.huggingface.co/u/dgunzy)\
**Post date:** [February 22, 2024, 10:19pm UTC](https://discuss.huggingface.co/t/help-with-custom-handler-py-for-model-inference-endpoint/74406/1 "2024-02-22T22:19:14Z")

</div>

Hey Everyone!  
I am having an issue where the custom endpoint I am creating on Hugging Face does not reflect the handler.py file that I have uploaded.

> **[dgunzy/capstone-t5-flan-summerizer at main](https://huggingface.co/dgunzy/capstone-t5-flan-summerizer/tree/main)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

This is my model, and I have put the handler.py in the project root. When I create a new inference endpoint the documentation suggests ( [Create custom Inference Handler](https://huggingface.co/docs/inference-endpoints/en/guides/custom_handler) ) that it will be detected and used, but I am not having any success. I am very new to this so any other suggestions are appreciated!

---

<div class="post-metadata">

**Author:** ![dgunzy](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@dgunzy](https://discuss.huggingface.co/u/dgunzy)\
**Post date:** [February 24, 2024, 11:56am UTC](https://discuss.huggingface.co/t/help-with-custom-handler-py-for-model-inference-endpoint/74406/2 "2024-02-24T11:56:13Z")

</div>

Looks like the container type has to be set to “Default”, not Text Generation. My mistake!
