Update app.py
Browse files
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)
|