# Hosted inference API: Pipeline cannot infer suitable model classes

**URL:** <https://discuss.huggingface.co/t/hosted-inference-api-pipeline-cannot-infer-suitable-model-classes/41334>\
**Category:** 🤗Hub\
**Created:** [May 29, 2023, 3:15pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-pipeline-cannot-infer-suitable-model-classes/41334 "2023-05-29T15:15:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KELONMYOSA](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kelonmyosa/32/16416_2.png) [@KELONMYOSA](https://discuss.huggingface.co/u/KELONMYOSA)\
**Post date:** [May 29, 2023, 3:15pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-pipeline-cannot-infer-suitable-model-classes/41334/1 "2023-05-29T15:15:06Z")

</div>

When I try to use the inference pipeline widget for my public project, I got this error.  
 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/c/8/c8ba6d7296ba67f7a702608d02fed35c5bc7b587.png)

> **[KELONMYOSA/wav2vec2-xls-r-300m-emotion-ru · Hugging Face](https://huggingface.co/KELONMYOSA/wav2vec2-xls-r-300m-emotion-ru)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

But the pipeline works locally

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [June 2, 2023, 5:50pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-pipeline-cannot-infer-suitable-model-classes/41334/2 "2023-06-02T17:50:48Z")

</div>

hi @KELONMYOSA ,

does your model work when you run with transformers?

```auto
from transformers.pipelines import pipeline
pipe = pipeline(model="KELONMYOSA/wav2vec2-xls-r-300m-emotion-ru", trust_remote_code=True)
result = pipe("speech.wav")
print(result)

```

Could you try update the model card and add the correct tags?

```auto
tags:
  - audio
  - audio-classification

```

---

<div class="post-metadata">

**Author:** ![KELONMYOSA](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kelonmyosa/32/16416_2.png) [@KELONMYOSA](https://discuss.huggingface.co/u/KELONMYOSA)\
**Post date:** [June 5, 2023, 1:59pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-pipeline-cannot-infer-suitable-model-classes/41334/3 "2023-06-05T13:59:35Z")

</div>

Hi, @radames

- Yes, everything works when I run it locally using transformers as specified in readme (pipeline and automodel)
- I have updated the model card

---

<div class="post-metadata">

**Author:** ![RageAgainstThePixel](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rageagainstthepixel/32/16591_2.png) [@RageAgainstThePixel](https://discuss.huggingface.co/u/RageAgainstThePixel)\
**Post date:** [June 5, 2023, 11:08pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-pipeline-cannot-infer-suitable-model-classes/41334/4 "2023-06-05T23:08:39Z")

</div>

This issue has been popping up on a bunch of different models and endpoints actually. I think there is a deeper issue at play.
