# Error - Model is loading Inference API

**URL:** <https://discuss.huggingface.co/t/error-model-is-loading-inference-api/90424>\
**Category:** Beginners\
**Created:** [June 5, 2024, 8:08am UTC](https://discuss.huggingface.co/t/error-model-is-loading-inference-api/90424 "2024-06-05T08:08:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoGic142](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@LoGic142](https://discuss.huggingface.co/u/LoGic142)\
**Post date:** [June 5, 2024, 8:08am UTC](https://discuss.huggingface.co/t/error-model-is-loading-inference-api/90424/1 "2024-06-05T08:08:51Z")

</div>

Here is the model I am using for a product - [speechbrain/lang-id-voxlingua107-ecapa · Hugging Face](https://huggingface.co/speechbrain/lang-id-voxlingua107-ecapa).

I see a 503 error for the first few times (the model is loading). I see a keyword argument “wait\_for\_model” in the text modality models, but I don’t see such a thing here.

What is the workaround for this? How to solve this gracefully so that the user experience is not hampered much

Thanks in advance.
