Spaces:
Sleeping
Sleeping
Peter
commited on
Commit
·
3243c4d
1
Parent(s):
7a286e6
increase max words
Browse files
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 =
|
| 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
|
| 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 = 1024,
|
| 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 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
|