Set max_length to 50 to avoid deprecation message

#2
by orena - opened
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -35,7 +35,7 @@ You can use this model directly with a pipeline for text generation. This exampl
35
  ```py
36
  >>> from transformers import pipeline
37
  >>> generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
38
- >>> generator("EleutherAI has", do_sample=True, min_length=50)
39
 
40
  [{'generated_text': 'EleutherAI has made a commitment to create new software packages for each of its major clients and has'}]
41
  ```
35
  ```py
36
  >>> from transformers import pipeline
37
  >>> generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
38
+ >>> generator("EleutherAI has", do_sample=True, min_length=50, max_length=50)
39
 
40
  [{'generated_text': 'EleutherAI has made a commitment to create new software packages for each of its major clients and has'}]
41
  ```