Update README.md
Browse files
README.md
CHANGED
@@ -49,7 +49,7 @@ text = "#Finds the length of the longest substring without repeating characters.
|
|
49 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
50 |
input_ids = input_ids.to(model.device)
|
51 |
outputs = model.generate(input_ids, max_new_tokens=80)
|
52 |
-
print(tokenizer.decode(outputs[0], skip_special_tokens=
|
53 |
```
|
54 |
**Code Insertion**
|
55 |
```python
|
@@ -71,7 +71,7 @@ text = """<|fim_begin|>def find_longest_substring(s):
|
|
71 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
72 |
input_ids = input_ids.to(model.device)
|
73 |
outputs = model.generate(input_ids, max_new_tokens=80)
|
74 |
-
print(tokenizer.decode(outputs[0], skip_special_tokens=
|
75 |
```
|
76 |
|
77 |
## 3.License
|
|
|
49 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
50 |
input_ids = input_ids.to(model.device)
|
51 |
outputs = model.generate(input_ids, max_new_tokens=80)
|
52 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
53 |
```
|
54 |
**Code Insertion**
|
55 |
```python
|
|
|
71 |
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
72 |
input_ids = input_ids.to(model.device)
|
73 |
outputs = model.generate(input_ids, max_new_tokens=80)
|
74 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
75 |
```
|
76 |
|
77 |
## 3.License
|