Update README.md
Browse files
README.md
CHANGED
@@ -19,7 +19,7 @@ You can use this model directly with a pipeline for text generation. Since the g
|
|
19 |
set a seed for reproducibility:
|
20 |
```python
|
21 |
>>> from transformers import pipeline, set_seed
|
22 |
-
>>> generation= pipeline('text-generation', model='Tanhim/gpt2-model-de')
|
23 |
>>> set_seed(42)
|
24 |
>>> generation("Hallo, ich bin ein Sprachmodell,", max_length=30, num_return_sequences=5)
|
25 |
|
|
|
19 |
set a seed for reproducibility:
|
20 |
```python
|
21 |
>>> from transformers import pipeline, set_seed
|
22 |
+
>>> generation= pipeline('text-generation', model='Tanhim/gpt2-model-de', tokenizer='Tanhim/gpt2-model-de')
|
23 |
>>> set_seed(42)
|
24 |
>>> generation("Hallo, ich bin ein Sprachmodell,", max_length=30, num_return_sequences=5)
|
25 |
|