Update README.md
Browse files
README.md
CHANGED
@@ -29,7 +29,7 @@ model = AutoModelWithLMHead.from_pretrained("mymusise/CPM-Generate-distill")
|
|
29 |
|
30 |
text_generater = TextGenerationPipeline(model, tokenizer)
|
31 |
|
32 |
-
print(text_generator('
|
33 |
```
|
34 |
|
35 |
|
|
|
29 |
|
30 |
text_generater = TextGenerationPipeline(model, tokenizer)
|
31 |
|
32 |
+
print(text_generator('清华大学是', max_length=50, do_sample=True, top_p=0.9))
|
33 |
```
|
34 |
|
35 |
|