pszemraj commited on
Commit
0bd3372
1 Parent(s): 4874c8d

⚡️ set max words to 6144

Browse files

Signed-off-by: peter szemraj <[email protected]>

Files changed (1) hide show
  1. app.py +3 -3
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 = 4096,
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 4096.
122
 
123
  Note:
124
- the max_input_length is set to 4096 by default, but can be changed by setting the
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: