Update README.md
Browse files
README.md
CHANGED
@@ -40,7 +40,8 @@ from transformers import pipeline
|
|
40 |
#Feel free to play around with the generation parameters.
|
41 |
#Reduce the beam width for faster inference
|
42 |
#Note that the maximum length for the generated titles is 64
|
43 |
-
gen_kwargs = {"length_penalty": 0.
|
|
|
44 |
pipe = pipeline("summarization", model="RajSang/pegasus-sports-titles")
|
45 |
|
46 |
#Change the article according to your wish
|
|
|
40 |
#Feel free to play around with the generation parameters.
|
41 |
#Reduce the beam width for faster inference
|
42 |
#Note that the maximum length for the generated titles is 64
|
43 |
+
gen_kwargs = {"length_penalty": 0.6, "num_beams":4, "num_return_sequences": 4,"num_beam_groups":4,"diversity_penalty":2.0}
|
44 |
+
|
45 |
pipe = pipeline("summarization", model="RajSang/pegasus-sports-titles")
|
46 |
|
47 |
#Change the article according to your wish
|