RajSang commited on
Commit
0863dfe
1 Parent(s): a75caef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
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.8, "num_beams":8, "max_length": 48}
 
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