uer commited on
Commit
3f0e9ed
1 Parent(s): 54d837a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -24,7 +24,7 @@ You can use the model directly with a pipeline for text generation:
24
  >>> model = GPT2LMHeadModel.from_pretrained("uer/gpt2-distil-chinese-cluecorpussmall")
25
  >>> text_generator = TextGenerationPipeline(model, tokenizer)
26
  >>> text_generator("这是很久之前的事情了", max_length=100, do_sample=True)
27
- [{'generated_text': '这是很久之前的事情了 天 都 问 自 己 程 中 是 一 个 '}]
28
  ```
29
 
30
 
 
24
  >>> model = GPT2LMHeadModel.from_pretrained("uer/gpt2-distil-chinese-cluecorpussmall")
25
  >>> text_generator = TextGenerationPipeline(model, tokenizer)
26
  >>> text_generator("这是很久之前的事情了", max_length=100, do_sample=True)
27
+ [{'generated_text': '这是很久之前的事情了 自 己 需 要 一 个 。 我 不 知'}]
28
  ```
29
 
30