Spaces:
Sleeping
Sleeping
JuanjoSG5
commited on
Commit
·
1fc799c
1
Parent(s):
357d274
feat: extended the summary length to 1024 chars
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def transcribe_and_summarize(audioFile):
|
|
| 37 |
result = summarizer.generate(
|
| 38 |
inputs["input_ids"],
|
| 39 |
min_length=10,
|
| 40 |
-
max_length=
|
| 41 |
no_repeat_ngram_size=2,
|
| 42 |
encoder_no_repeat_ngram_size=2,
|
| 43 |
repetition_penalty=2.0,
|
|
|
|
| 37 |
result = summarizer.generate(
|
| 38 |
inputs["input_ids"],
|
| 39 |
min_length=10,
|
| 40 |
+
max_length=1024,
|
| 41 |
no_repeat_ngram_size=2,
|
| 42 |
encoder_no_repeat_ngram_size=2,
|
| 43 |
repetition_penalty=2.0,
|