# Error Deploying Private Endpoint

**URL:** <https://discuss.huggingface.co/t/error-deploying-private-endpoint/59421>\
**Category:** Inference Endpoints on the Hub\
**Created:** [October 22, 2023, 3:13am UTC](https://discuss.huggingface.co/t/error-deploying-private-endpoint/59421 "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](https://discuss.huggingface.co/u/Sergioft)\
**Post date:** [October 22, 2023, 3:13am UTC](https://discuss.huggingface.co/t/error-deploying-private-endpoint/59421/1 "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](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [October 23, 2023, 7:40am UTC](https://discuss.huggingface.co/t/error-deploying-private-endpoint/59421/2 "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](https://discuss.huggingface.co/u/Sergioft)\
**Post date:** [October 23, 2023, 12:28pm UTC](https://discuss.huggingface.co/t/error-deploying-private-endpoint/59421/3 "2023-10-23T12:28:59Z")

</div>

Yes I have. The framework is set to Tensorflow.
