mbahrami commited on
Commit
e584b28
1 Parent(s): f256354

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -4,11 +4,13 @@ This is Augmented Code Model which is a fined-tune model of [CodeBERT](https://h
4
  ## How to use the model ?
5
  Similar to other huggingface model, you may load the model as follows.
6
  ```python
7
- from transformers import AutoTokenizer, AutoModel
8
 
9
- tokenizer = AutoTokenizer.from_pretrained("microsoft/codebert-base")
 
 
 
 
10
 
11
- model = AutoModel.from_pretrained("microsoft/codebert-base")
12
  ```
13
  Then you may use it to infer the similarity between a given docstring and code.
14
 
4
  ## How to use the model ?
5
  Similar to other huggingface model, you may load the model as follows.
6
  ```python
 
7
 
8
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
9
+
10
+ tokenizer = AutoTokenizer.from_pretrained("Fujitsu/AugCode")
11
+
12
+ model = AutoModelForSequenceClassification.from_pretrained("Fujitsu/AugCode")
13
 
 
14
  ```
15
  Then you may use it to infer the similarity between a given docstring and code.
16