hhou435 commited on
Commit
9dde4f6
1 Parent(s): fe59dba
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-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-chinese-cluecorpussmall")
25
  >>> text_generator = TextGenerationPipeline(model, tokenizer)
26
  >>> text_generator("这是很久之前的事情了", max_length=100, do_sample=True)
27
+ [{'generated_text': '这是很久之前的事情了 我 们 起 来 。'}]
28
  ```
29
 
30