# Help with custom handler.py for model inference endpoint

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-custom-handler-py-for-model-inference-endpoint%2F74406%3E%5C
**Category:** Beginners\
**Created:** [February 22, 2024, 10:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-custom-handler-py-for-model-inference-endpoint%2F74406 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdgunzy)%5C
**Post date:** [February 22, 2024, 10:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-custom-handler-py-for-model-inference-endpoint%2F74406%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdgunzy)%5C
**Post date:** [February 24, 2024, 11:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-custom-handler-py-for-model-inference-endpoint%2F74406%2F2 "2024-02-24T11:56:13Z")

</div>

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