shibing624 commited on
Commit
8944088
1 Parent(s): 2f66290

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -38,11 +38,11 @@ Install package:
38
  pip install -U textgen
39
  ```
40
 
41
- ```shell
42
- >>> from textgen import T5Model
43
- >>> model = T5Model("t5", "shibing624/t5-chinese-couplet")
44
- >>> r = model.predict(["对联:丹枫江冷人初去"])
45
- ['白石矶寒客不归']
46
  ```
47
 
48
  ## Usage (HuggingFace Transformers)
 
38
  pip install -U textgen
39
  ```
40
 
41
+ ```python
42
+ from textgen import T5Model
43
+ model = T5Model("t5", "shibing624/t5-chinese-couplet")
44
+ r = model.predict(["对联:丹枫江冷人初去"])
45
+ print(r) # ['白石矶寒客不归']
46
  ```
47
 
48
  ## Usage (HuggingFace Transformers)