Spaces:
Runtime error
Runtime error
Increase `num_beams`
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def predict(text):
|
|
12 |
attention_mask=tokenized_inputs["attention_mask"],
|
13 |
max_new_tokens=256,
|
14 |
length_penalty=0.8,
|
15 |
-
num_beams=
|
16 |
do_sample=True
|
17 |
)
|
18 |
summary = tokenizer.batch_decode(output, skip_special_tokens=True)[0]
|
|
|
12 |
attention_mask=tokenized_inputs["attention_mask"],
|
13 |
max_new_tokens=256,
|
14 |
length_penalty=0.8,
|
15 |
+
num_beams=4,
|
16 |
do_sample=True
|
17 |
)
|
18 |
summary = tokenizer.batch_decode(output, skip_special_tokens=True)[0]
|