Spaces:
Runtime error
Runtime error
arnavkundalia
commited on
Commit
•
9e98933
1
Parent(s):
30a1837
Changed min and max length.
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ def summarize(Terms):
|
|
13 |
num_beams=9,
|
14 |
no_repeat_ngram_size=3,
|
15 |
length_penalty=2.0,
|
16 |
-
min_length=
|
17 |
-
max_length=
|
18 |
early_stopping=True)
|
19 |
summary = [tokenizer.decode(g, skip_special_tokens=True,
|
20 |
clean_up_tokenization_spaces=False) for g in summary_ids][0]
|
|
|
13 |
num_beams=9,
|
14 |
no_repeat_ngram_size=3,
|
15 |
length_penalty=2.0,
|
16 |
+
min_length= 150,
|
17 |
+
max_length= 200,
|
18 |
early_stopping=True)
|
19 |
summary = [tokenizer.decode(g, skip_special_tokens=True,
|
20 |
clean_up_tokenization_spaces=False) for g in summary_ids][0]
|