shibing624 commited on
Commit
95a64c9
·
1 Parent(s): 9a23788

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -6,7 +6,7 @@ tags:
6
  - code
7
  - autocomplete
8
  - pytorch
9
- - zh
10
  license: "apache-2.0"
11
  ---
12
 
@@ -21,7 +21,7 @@ Open source repo:[code-autocomplete](https://github.com/shibing624/code-autoco
21
 
22
  ```python
23
  from autocomplete.gpt2 import Infer
24
- m = Infer(model_name="gpt2", model_dir="shibing624/code-autocomplete-gpt2-base", use_cuda=use_cuda)
25
  i = m.predict('import torch.nn as')
26
  print(i)
27
  ```
 
6
  - code
7
  - autocomplete
8
  - pytorch
9
+ - en
10
  license: "apache-2.0"
11
  ---
12
 
 
21
 
22
  ```python
23
  from autocomplete.gpt2 import Infer
24
+ m = Infer(model_name="gpt2", model_dir="shibing624/code-autocomplete-gpt2-base", use_cuda=False)
25
  i = m.predict('import torch.nn as')
26
  print(i)
27
  ```