Chandan Singh
commited on
Commit
•
1f21d59
1
Parent(s):
b559e35
Minor fix to example in the readme
Browse filesCurrent example gives `ValueError: Unfeasable length constraints: the minimum length (50) is larger than the maximum length (20)`
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-125M')
|
38 |
-
>>> generator("EleutherAI has", do_sample=True, min_length=
|
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-125M')
|
38 |
+
>>> generator("EleutherAI has", do_sample=True, min_length=20)
|
39 |
|
40 |
[{'generated_text': 'EleutherAI has made a commitment to create new software packages for each of its major clients and has'}]
|
41 |
```
|