JohnKouf commited on
Commit
d7ea8b9
·
verified ·
1 Parent(s): e1813bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def genarate_summary(article):
34
  num_beams=4,
35
  early_stopping=False,
36
  repetition_penalty=3.0,
 
37
  )
38
 
39
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
 
34
  num_beams=4,
35
  early_stopping=False,
36
  repetition_penalty=3.0,
37
+ no_repeat_ngram_size=3
38
  )
39
 
40
  return tokenizer.decode(outputs[0], skip_special_tokens=True)