Add default examples for the Inference API
Hi there,I recently fine-tuned a model and add it to the Hub.My model is BERT based with a classification head used for sentiment analysis.I’m wondering how to set-up default examples to be selected by users. The Hub has already set an example in english but my model uses Arabic language.Here you can find my model.huggingface.coYah216/Sentiment_Analysis_CAMelBERT_msa_sixteenth_HARD · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.Thanks
2021-11-15T14:55:16Z
UPDATE:I found the answer in another model README.mdApparently, I had to add in the top of my README.md the following text:---
language: ar        # <-- my language
widget:
 - text: "my example goes here in the requested language"
---Hope this helps other beginners tooand would be awesome if someone put the link to the doc that discusses this issue.