Jezia commited on
Commit
21b6972
·
1 Parent(s): b8b926e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -27,7 +27,7 @@ IMDB sentiment classification dataset for training. The model generates new movi
27
  You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, I
28
  set seed for reproducibility:
29
  ```python
30
- >>>from transformers import pipeline, set_seed
31
- >>>model = generation= pipeline('text-generation', model='keras-io/text-generation-miniature-gpt', tokenizer='bert-base-uncased')
32
- >>>set_seed(20)
33
- >>>generation("Once upon a time,", max_length=30, num_return_sequences=5)
 
27
  You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, I
28
  set seed for reproducibility:
29
  ```python
30
+ >>> from transformers import pipeline, set_seed
31
+ >>> model = generation= pipeline('text-generation', model='keras-io/text-generation-miniature-gpt', tokenizer='bert-base-uncased')
32
+ >>> set_seed(20)
33
+ >>> generation("Once upon a time,", max_length=30, num_return_sequences=5)