Spaces:
Sleeping
Sleeping
increase max length for large
Browse filesSigned-off-by: peter szemraj <peterszemraj@gmail.com>
app.py
CHANGED
@@ -28,7 +28,7 @@ def proc_submission(
|
|
28 |
length_penalty,
|
29 |
repetition_penalty,
|
30 |
no_repeat_ngram_size,
|
31 |
-
max_input_length: int =
|
32 |
):
|
33 |
"""
|
34 |
proc_submission - a helper function for the gradio module to process submissions
|
@@ -41,7 +41,7 @@ def proc_submission(
|
|
41 |
length_penalty (float): the length penalty to use
|
42 |
repetition_penalty (float): the repetition penalty to use
|
43 |
no_repeat_ngram_size (int): the no repeat ngram size to use
|
44 |
-
max_input_length (int, optional): the maximum input length to use. Defaults to
|
45 |
|
46 |
Returns:
|
47 |
str in HTML format, string of the summary, str of score
|
|
|
28 |
length_penalty,
|
29 |
repetition_penalty,
|
30 |
no_repeat_ngram_size,
|
31 |
+
max_input_length: int = 1024,
|
32 |
):
|
33 |
"""
|
34 |
proc_submission - a helper function for the gradio module to process submissions
|
|
|
41 |
length_penalty (float): the length penalty to use
|
42 |
repetition_penalty (float): the repetition penalty to use
|
43 |
no_repeat_ngram_size (int): the no repeat ngram size to use
|
44 |
+
max_input_length (int, optional): the maximum input length to use. Defaults to 1024.
|
45 |
|
46 |
Returns:
|
47 |
str in HTML format, string of the summary, str of score
|