# How to set minimum length of generated text by widget?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-set-minimum-length-of-generated-text-by-widget%2F6652%3E%5C
**Category:** Model cards\
**Created:** [June 8, 2021, 10:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-set-minimum-length-of-generated-text-by-widget%2F6652 "2021-06-08T10:47:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarme](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@sarme](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsarme)%5C
**Post date:** [June 8, 2021, 10:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-set-minimum-length-of-generated-text-by-widget%2F6652%2F1 "2021-06-08T10:47:39Z")

</div>

Hi,  
I have a T5 finetuned model I want to set min length and max length for the widget output but unfortunately I have not found any kind of info for this on similar models or documentation. Can anyone help?

---

<div class="post-metadata">

**Author:** ![sarme](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@sarme](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsarme)%5C
**Post date:** [June 10, 2021, 5:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-set-minimum-length-of-generated-text-by-widget%2F6652%2F2 "2021-06-10T17:52:25Z")

</div>

Does anyone face something same?
