Peter commited on
Commit
6fc8143
·
1 Parent(s): 3243c4d

changed mind on max words

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,7 +48,7 @@ def proc_submission(
48
  length_penalty,
49
  repetition_penalty,
50
  no_repeat_ngram_size,
51
- max_input_length: int = 1024,
52
  ):
53
  """
54
  proc_submission - a helper function for the gradio module
@@ -136,7 +136,7 @@ if __name__ == "__main__":
136
  gr.inputs.Textbox(
137
  lines=10,
138
  label="input text",
139
- placeholder="Enter text to summarize, the text will be cleaned and truncated to 1024 words on Spaces. Narrative, academic (both papers and lecture transcription), and article text work well.",
140
  ),
141
  gr.inputs.Slider(
142
  minimum=1, maximum=6, label="num_beams", default=4, step=1
 
48
  length_penalty,
49
  repetition_penalty,
50
  no_repeat_ngram_size,
51
+ max_input_length: int = 512,
52
  ):
53
  """
54
  proc_submission - a helper function for the gradio module
 
136
  gr.inputs.Textbox(
137
  lines=10,
138
  label="input text",
139
+ placeholder="Enter text to summarize, the text will be cleaned and truncated to 512 words on Spaces. Narrative, academic (both papers and lecture transcription), and article text work well.",
140
  ),
141
  gr.inputs.Slider(
142
  minimum=1, maximum=6, label="num_beams", default=4, step=1