readme: fix generation example
Browse files
README.md
CHANGED
@@ -51,7 +51,7 @@ from transformers import pipeline
|
|
51 |
pipe = pipeline('text-generation', model="dbmdz/german-gpt2",
|
52 |
tokenizer="dbmdz/german-gpt2")
|
53 |
|
54 |
-
text =
|
55 |
|
56 |
print(text)
|
57 |
```
|
|
|
51 |
pipe = pipeline('text-generation', model="dbmdz/german-gpt2",
|
52 |
tokenizer="dbmdz/german-gpt2")
|
53 |
|
54 |
+
text = pipe("Der Sinn des Lebens ist es", max_length=100)[0]["generated_text"]
|
55 |
|
56 |
print(text)
|
57 |
```
|