# Issue with HuggingFace psuh\_to\_hub

**URL:** <https://discuss.ai.google.dev/t/issue-with-huggingface-psuh-to-hub/27368>\
**Category:** General Discussion\
**Tags:** nlp, keras, transformers\
**Created:** [June 19, 2023, 2:15am UTC](https://discuss.ai.google.dev/t/issue-with-huggingface-psuh-to-hub/27368 "2023-06-19T02:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seungjun\_Lee](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/seungjun_lee/32/18164_2.png) [@Seungjun\_Lee](https://discuss.ai.google.dev/u/Seungjun_Lee)\
**Post date:** [June 19, 2023, 2:15am UTC](https://discuss.ai.google.dev/t/issue-with-huggingface-psuh-to-hub/27368/1 "2023-06-19T02:15:56Z")

</div>

Hi following [Keras tutorial](https://keras.io/examples/nlp/t5_hf_summarization/), I created a fine-tuned version of t5 model using Keras API, and inferencing works well.

But I’m having a some problem with uploading the model to the hub

As written in the tutorial, I tried pushing the model using following code:

```auto
model.push_to_hub("textSummary", organization="organName")

```

But this gave me this error saying `'TypeError: HfApi.create_repo() got an unexpected keyword argument 'organization'`

So I tried 3 other following methods, but all those line giving me same error:

```auto
# method 1
model.push_to_hub('textSummary')
# method 2
model.push_to_hub('Seungjun/textSummary')
# method 3
from huggingface_hub import notebook_login, create_repo
from transformers import AutoTokenizer
create_repo("Seungjun/textSummary", private=False)
model.push_to_hub('Seungjun/textSummary')

```

Can I get some any help please

---

<div class="post-metadata">

**Author:** ![Kiran\_Sai\_Ramineni](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kiran_sai_ramineni/32/8859_2.png) [@Kiran\_Sai\_Ramineni](https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni)\
**Post date:** [June 20, 2023, 10:31am UTC](https://discuss.ai.google.dev/t/issue-with-huggingface-psuh-to-hub/27368/3 "2023-06-20T10:31:03Z")

</div>

Hi @Seungjun_Lee, Thanks for taking the time to report this issue. Since it is a bug, please create an issue on [GitHub](https://github.com/keras-team/keras-io/issues/new) for the fix. Thank You.
