sungwooo commited on
Commit
38de044
1 Parent(s): 7f745fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def summ(txt):
15
  bos_token_id=model.config.bos_token_id,
16
  eos_token_id=model.config.eos_token_id,
17
  length_penalty=2.0,
18
- max_length=142
19
  min_length=56,
20
  num_beams=4)
21
  return tokenizer.decode(summary_text_ids[0],skip_special_tokens=True)
 
15
  bos_token_id=model.config.bos_token_id,
16
  eos_token_id=model.config.eos_token_id,
17
  length_penalty=2.0,
18
+ max_length=142,
19
  min_length=56,
20
  num_beams=4)
21
  return tokenizer.decode(summary_text_ids[0],skip_special_tokens=True)