AhmedSSoliman
commited on
Commit
·
d8e2057
1
Parent(s):
4768852
Update README.md
Browse files
README.md
CHANGED
@@ -11,4 +11,9 @@ tokenizer = AutoTokenizer.from_pretrained("AhmedSSoliman/MarianCG_NL-to-Code")
|
|
11 |
NL_input = "create array containing the maximum value of respective elements of array `[2, 3, 4]` and array `[1, 5, 2]"
|
12 |
output = model.generate(**tokenizer(NL_input, padding="max_length", truncation=True, max_length=512, return_tensors="pt"))
|
13 |
output_code = tokenizer.decode(output[0], skip_special_tokens=True)
|
14 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
11 |
NL_input = "create array containing the maximum value of respective elements of array `[2, 3, 4]` and array `[1, 5, 2]"
|
12 |
output = model.generate(**tokenizer(NL_input, padding="max_length", truncation=True, max_length=512, return_tensors="pt"))
|
13 |
output_code = tokenizer.decode(output[0], skip_special_tokens=True)
|
14 |
+
```
|
15 |
+
|
16 |
+
---
|
17 |
+
widget:
|
18 |
+
- text: 'create array containing the maximum value of respective elements of array `[2, 3, 4]` and array `[1, 5, 2]'
|
19 |
+
---
|