# Add dependencies for Hosted Inference API

**URL:** <https://discuss.huggingface.co/t/add-dependencies-for-hosted-inference-api/18845>\
**Category:** Beginners\
**Created:** [June 8, 2022, 6:02am UTC](https://discuss.huggingface.co/t/add-dependencies-for-hosted-inference-api/18845 "2022-06-08T06:02:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kieranm](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kieranm](https://discuss.huggingface.co/u/Kieranm)\
**Post date:** [June 8, 2022, 6:02am UTC](https://discuss.huggingface.co/t/add-dependencies-for-hosted-inference-api/18845/1 "2022-06-08T06:02:09Z")

</div>

I am trying to configure the Hosted Inference API for my model hosted at : [Kieranm/britishmus\_plate\_material\_classifier · Hugging Face](https://huggingface.co/Kieranm/britishmus_plate_material_classifier)

When I try to use the API it indicates “no module named timm”. I assume this means it is not installed, how and where do I add this module as a dependency for the Hosted Inference API?

I have already tried adding “timm=0.5.4” and “timm” to the pyproject.toml and a requirements.txt file respectively.

---

<div class="post-metadata">

**Author:** ![NimaBoscarino](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nimaboscarino/32/4358_2.png) [@NimaBoscarino](https://discuss.huggingface.co/u/NimaBoscarino)\
**Post date:** [June 8, 2022, 11:41pm UTC](https://discuss.huggingface.co/t/add-dependencies-for-hosted-inference-api/18845/2 "2022-06-08T23:41:30Z")

</div>

Hello @Kieranm! So at the moment we don’t allow adding custom dependencies to the Inference API, but we’ll likely be able to add `timm` to the FastAI inference environment soon. I can loop back to you when that’s done, and then your model should work just fine!

---

<div class="post-metadata">

**Author:** ![NimaBoscarino](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nimaboscarino/32/4358_2.png) [@NimaBoscarino](https://discuss.huggingface.co/u/NimaBoscarino)\
**Post date:** [June 9, 2022, 4:43pm UTC](https://discuss.huggingface.co/t/add-dependencies-for-hosted-inference-api/18845/3 "2022-06-09T16:43:54Z")

</div>

Good news! We’ve added `timm==0.5.4` to the FastAI inference environment, so your model works now 😄

---

<div class="post-metadata">

**Author:** ![Kieranm](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kieranm](https://discuss.huggingface.co/u/Kieranm)\
**Post date:** [June 10, 2022, 1:19am UTC](https://discuss.huggingface.co/t/add-dependencies-for-hosted-inference-api/18845/4 "2022-06-10T01:19:28Z")

</div>

Amazing thanks Nima! That was so fast.

I suppose the positive of this whole thing was that it forced me to learn how to make a space in the mean time.
