Spaces:
Runtime error
Runtime error
⚡️ set max words to 6144
Browse filesSigned-off-by: peter szemraj <peterszemraj@gmail.com>
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def proc_submission(
|
|
| 105 |
length_penalty: float,
|
| 106 |
repetition_penalty: float,
|
| 107 |
no_repeat_ngram_size: int,
|
| 108 |
-
max_input_length: int =
|
| 109 |
):
|
| 110 |
"""
|
| 111 |
proc_submission - a helper function for the gradio module to process submissions
|
|
@@ -118,10 +118,10 @@ def proc_submission(
|
|
| 118 |
length_penalty (float): the length penalty to use
|
| 119 |
repetition_penalty (float): the repetition penalty to use
|
| 120 |
no_repeat_ngram_size (int): the no repeat ngram size to use
|
| 121 |
-
max_input_length (int, optional): the maximum input length to use. Defaults to
|
| 122 |
|
| 123 |
Note:
|
| 124 |
-
the max_input_length is set to
|
| 125 |
environment variable APP_MAX_WORDS to a different value.
|
| 126 |
|
| 127 |
Returns:
|
|
|
|
| 105 |
length_penalty: float,
|
| 106 |
repetition_penalty: float,
|
| 107 |
no_repeat_ngram_size: int,
|
| 108 |
+
max_input_length: int = 6144,
|
| 109 |
):
|
| 110 |
"""
|
| 111 |
proc_submission - a helper function for the gradio module to process submissions
|
|
|
|
| 118 |
length_penalty (float): the length penalty to use
|
| 119 |
repetition_penalty (float): the repetition penalty to use
|
| 120 |
no_repeat_ngram_size (int): the no repeat ngram size to use
|
| 121 |
+
max_input_length (int, optional): the maximum input length to use. Defaults to 6144.
|
| 122 |
|
| 123 |
Note:
|
| 124 |
+
the max_input_length is set to 6144 by default, but can be changed by setting the
|
| 125 |
environment variable APP_MAX_WORDS to a different value.
|
| 126 |
|
| 127 |
Returns:
|