Update README.md
Browse files
README.md
CHANGED
@@ -45,3 +45,11 @@ The following hyperparameters were used during training:
|
|
45 |
- TensorFlow 2.8.2
|
46 |
- Datasets 2.4.0
|
47 |
- Tokenizers 0.12.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
- TensorFlow 2.8.2
|
46 |
- Datasets 2.4.0
|
47 |
- Tokenizers 0.12.1
|
48 |
+
|
49 |
+
### How to use it?
|
50 |
+
from transformers import pipeline
|
51 |
+
generator = pipeline('text-generation', model='hadidev/gpt2-urdu-smallest')
|
52 |
+
generator("میرے بھائی", max_length=256, num_beams = 3,
|
53 |
+
temperature = 0.7,
|
54 |
+
no_repeat_ngram_size=2,
|
55 |
+
num_return_sequences=1)
|