# Error Deploying Private Endpoint

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-deploying-private-endpoint%2F59421%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [October 22, 2023, 3:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-deploying-private-endpoint%2F59421 "2023-10-22T03:13:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergioft](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Sergioft](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSergioft)%5C
**Post date:** [October 22, 2023, 3:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-deploying-private-endpoint%2F59421%2F1 "2023-10-22T03:13:09Z")

</div>

I’m trying to create a private endpoint (with AWS provider) using the huggingface UI in order to deploy a model from repo arpanghoshal/EmoRoBERTa… Unfortunately, I get the following error:

~ ValueError: Could not load model /repository with any of the following classes: (\<class ‘transformers.models.auto.modeling\_auto.AutoModelForSequenceClassification’\>, \<class ‘transformers.models.roberta.modeling\_roberta.RobertaForSequenceClassification’\>)

Given I’m using the inference deployment UI, what can I do to resolve this?

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [October 23, 2023, 7:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-deploying-private-endpoint%2F59421%2F2 "2023-10-23T07:40:46Z")

</div>

> [@Sergioft](#):
>
> arpanghoshal/EmoRoBERTa

Have you made sure that the selected framework is “tensorflow”?

---

<div class="post-metadata">

**Author:** ![Sergioft](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@Sergioft](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSergioft)%5C
**Post date:** [October 23, 2023, 12:28pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-deploying-private-endpoint%2F59421%2F3 "2023-10-23T12:28:59Z")

</div>

Yes I have. The framework is set to Tensorflow.
