# Hosted inference API not working

**URL:** <https://discuss.huggingface.co/t/hosted-inference-api-not-working/33025>\
**Category:** 🤗Hub\
**Created:** [March 4, 2023, 3:51pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-not-working/33025 "2023-03-04T15:51:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiltj](https://avatars.discourse-cdn.com/v4/letter/e/d07c76/32.png) [@emiltj](https://discuss.huggingface.co/u/emiltj)\
**Post date:** [March 4, 2023, 3:51pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-not-working/33025/1 "2023-03-04T15:51:11Z")

</div>

Hi,

I recently trained and uploaded a couple of models, however the Hosted inference API is not working.

I get the error: `cannot import name 'DatasetInfo' from 'huggingface_hub.hf_api' (/usr/local/lib/python3.8/site-packages/huggingface_hub/hf_api.py)`  
E.g. [Link to example of error.](https://huggingface.co/emiltj/da_dacy_small_DANSK_ner?text=Dette+er+en+tekst+om+landet+Danmark)

Why am I getting this error? And how do I make the Hosted inference API working?  
The models are otherwise working just fine.

Best

---

<div class="post-metadata">

**Author:** ![emiltj](https://avatars.discourse-cdn.com/v4/letter/e/d07c76/32.png) [@emiltj](https://discuss.huggingface.co/u/emiltj)\
**Post date:** [March 6, 2023, 1:17pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-not-working/33025/2 "2023-03-06T13:17:18Z")

</div>

New link to a non-working model in the Hosted Inference API:

> **[emiltj/da\_multi\_dupli\_rater\_1\_onto · Hugging Face](https://huggingface.co/emiltj/da_multi_dupli_rater_1_onto?text=Somet%2Btext)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
