Update README.md
Browse files
README.md
CHANGED
@@ -21,15 +21,9 @@ The Simbolo's Myanmar SAR GPT symbol is trained on a dataset of 1 million Burmes
|
|
21 |
```python
|
22 |
!pip install transformers
|
23 |
|
24 |
-
from transformers import
|
25 |
|
26 |
-
|
27 |
-
model = AutoModelForCausalLM.from_pretrained("Simbolo-Servicio/myanmar-sar-gpt")
|
28 |
-
|
29 |
-
input_text = ""
|
30 |
-
input_ids = tokenizer.encode(input_text, return_tensors='pt')
|
31 |
-
output = model.generate(input_ids, max_length=100)
|
32 |
-
print(tokenizer.decode(output[0], skip_special_tokens=True))
|
33 |
|
34 |
```
|
35 |
### Data
|
|
|
21 |
```python
|
22 |
!pip install transformers
|
23 |
|
24 |
+
from transformers import pipeline
|
25 |
|
26 |
+
chef = pipeline('text-generation',model='Simbolo-Servicio/myanmar-burmese-gpt', tokenizer='Simbolo-Servicio/myanmar-burmese-gpt',config={'max_length':500})
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
```
|
29 |
### Data
|