# Customize the example shown in Inference API

**URL:** <https://discuss.huggingface.co/t/customize-the-example-shown-in-inference-api/12084>\
**Category:** 🤗Hub\
**Created:** [November 19, 2021, 11:04pm UTC](https://discuss.huggingface.co/t/customize-the-example-shown-in-inference-api/12084 "2021-11-19T23:04:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lauler](https://avatars.discourse-cdn.com/v4/letter/l/6de8d8/32.png) [@Lauler](https://discuss.huggingface.co/u/Lauler)\
**Post date:** [November 19, 2021, 11:04pm UTC](https://discuss.huggingface.co/t/customize-the-example-shown-in-inference-api/12084/1 "2021-11-19T23:04:14Z")

</div>

Huggingface’s Hosted Inference API always seems to display examples in English regardless of what language the user uploads a model for.

Is there a way for users to customize the example shown so that it is relevant for a given model?

\*Edit: After searching some more I found the following link ([Model Repos docs](https://huggingface.co/docs/hub/model-repos#when-sharing-a-model-what-should-i-add-to-my-model-card)) which describes how a user can customize the inference task and the example shown. I will leave this thread up anyway for future users and search engine results, since I myself had huge difficulties finding the documentation.

In my opinion Huggingface should absolutely mention this somewhere in the Accelerated Inference API documentation, since that is the top search result in search engines when searching for “inference api customize example” .

---

<div class="post-metadata">

**Author:** ![selimsametoglu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/selimsametoglu/32/4286_2.png) [@selimsametoglu](https://discuss.huggingface.co/u/selimsametoglu)\
**Post date:** [March 21, 2022, 10:51am UTC](https://discuss.huggingface.co/t/customize-the-example-shown-in-inference-api/12084/2 "2022-03-21T10:51:01Z")

</div>

Thank you Lauler, this is important, indeed.

---

<div class="post-metadata">

**Author:** ![jonra1993](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@jonra1993](https://discuss.huggingface.co/u/jonra1993)\
**Post date:** [November 7, 2022, 4:32am UTC](https://discuss.huggingface.co/t/customize-the-example-shown-in-inference-api/12084/3 "2022-11-07T04:32:33Z")

</div>

How to add a widget can be found here [Widgets](https://huggingface.co/docs/hub/models-widgets) and it should be added to card metadata

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/dec07408f2fd6e2ea423b3e56afd3afa50bd568b.png)
